-
Notifications
You must be signed in to change notification settings - Fork 0
/
dep.huelights.yaml
49 lines (49 loc) · 1.1 KB
/
dep.huelights.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: huelights
labels:
app: huelights
spec:
selector:
matchLabels:
app: huelights
template:
metadata:
labels:
app: huelights
spec:
containers:
- name: jj
image: hello:flask
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000
- containerPort: 80
livenessProbe:
httpGet:
path: /api/v1/livenessprobe
port: 5000
initialDelaySeconds: 30
periodSeconds: 600
volumeMounts:
- mountPath: /mnt/jj
name: jj-db
# - name: jj-nginx
# image: hello:nginx
# imagePullPolicy: IfNotPresent
# ports:
# - containerPort: 80
# resources:
# requests:
# cpu: 2000m
# livenessProbe:
# httpGet:
# path: /api/v1/livenessprobe
# port: 80
# initialDelaySeconds: 60
# periodSeconds: 600
volumes:
- name: jj-db
persistentVolumeClaim:
claimName: pvc-huelights-local