-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
44 lines (44 loc) · 1.08 KB
/
deployment.yml
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: echo-deployment
spec:
selector:
matchLabels:
app.kubernetes.io/name: echo
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: echo
spec:
containers:
- name: echo
image: europe-west3-docker.pkg.dev/swr-schulung-basic-1/swr-schulung-basic-1/echo-demo:latest
ports:
- containerPort: 8081
livenessProbe:
httpGet:
path: /liveness
port: 8081
periodSeconds: 5
readinessProbe:
httpGet:
path: /readiness
port: 8081
periodSeconds: 5
env:
- name: ECHO_MESSAGE
value: "Hello World"
volumeMounts:
- name: configmap
mountPath: /etc/configmap
- name: secret
mountPath: /etc/secret
volumes:
- name: configmap
configMap:
name: echo-configmap
- name: secret
secret:
secretName: echo-secret