/
deployment.yaml
49 lines (49 loc) · 1.06 KB
/
deployment.yaml
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
45
46
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: commondep
labels:
app: commonplacing
spec:
replicas: 1
selector:
matchLabels:
app: commonplacing
template:
metadata:
name: commonplacing
labels:
app: commonplacing
spec:
containers:
- name: commonplacing
env:
- name: STR1
valueFrom:
secretKeyRef:
name: connstring
key: connstring1
- name: STR2
valueFrom:
secretKeyRef:
name: connstring
key: connstring2
- name: PASS
valueFrom:
secretKeyRef:
name: mineql-mysql
key: mysql-root-password
image: localhost:5000/commonplacing:1.4
ports:
- containerPort: 8080
name: http
livenessProbe:
httpGet:
path: /
port: http
periodSeconds: 5
readinessProbe:
httpGet:
path: /
port: http
# image: qlek/commonplacing:1.2