1
0
Fork 0

configure probes

This commit is contained in:
Tobias Brunner 2019-07-24 21:49:23 +02:00
parent a866ce7b4b
commit 9a67a87f36
2 changed files with 40 additions and 3 deletions

View File

@ -32,7 +32,25 @@ spec:
imagePullPolicy: Always
name: iotbox
ports:
- containerPort: 8069
- containerPort: 8072
- name: http
containerPort: 8069
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 6
failureThreshold: 1
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 6
failureThreshold: 1
hostname: iotbox
restartPolicy: Always

View File

@ -29,7 +29,26 @@ spec:
imagePullPolicy: Always
name: web
ports:
- containerPort: 8069
- name: http
containerPort: 8069
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 6
failureThreshold: 1
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 6
failureThreshold: 1
volumeMounts:
- mountPath: /var/lib/odoo
name: odoo-data