-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.yaml
More file actions
44 lines (44 loc) · 859 Bytes
/
example.yaml
File metadata and controls
44 lines (44 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
labels:
example: server
spec:
replicas: 1
selector:
matchLabels:
example: server
template:
metadata:
labels:
example: server
spec:
containers:
- env:
- name: EXAMPLE_VAR
value: example_value
name: example
image: ghcr.io/io-market-ag/example:test
volumeMounts:
- mountPath: /data
name: data
imagePullSecrets:
- name: ghcrgithub
volumes:
- name: data
hostPath:
path: <PATH_ON_HOST>
---
apiVersion: v1
kind: Service
metadata:
name: example-entrypoint
spec:
type: NodePort
selector:
example: server
ports:
- port: 80 # Port in docker
targetPort: 80 # Port in kubernetes network
nodePort: 30080 # External port