diff --git a/deployment/iotbox-deployment.yaml b/deployment/iotbox-deployment.yaml index 9f798e7..f628c63 100644 --- a/deployment/iotbox-deployment.yaml +++ b/deployment/iotbox-deployment.yaml @@ -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 diff --git a/deployment/odoo-deployment.yaml b/deployment/odoo-deployment.yaml index 3768a1f..31a3e1f 100644 --- a/deployment/odoo-deployment.yaml +++ b/deployment/odoo-deployment.yaml @@ -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