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