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 imagePullPolicy: Always
name: iotbox name: iotbox
ports: ports:
- containerPort: 8069 - name: http
- containerPort: 8072 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 hostname: iotbox
restartPolicy: Always restartPolicy: Always

View file

@ -29,7 +29,26 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
name: web name: web
ports: 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: volumeMounts:
- mountPath: /var/lib/odoo - mountPath: /var/lib/odoo
name: odoo-data name: odoo-data