configure probes
This commit is contained in:
parent
a866ce7b4b
commit
9a67a87f36
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue