Implemented livenessProbe for different OpenStack api containers

LivenessProbe is added to the below deployments:
  glance-api
  glance-registry
  heat-api
  heat-cfn
  horizon
  keystone-api
  nova-api-metadata
  nova-api-osapi
  nova-placement-api

Change-Id: I76b8cafa437855eeb42b77e88da6e3c514a3ac90
Signed-off-by: Huang,Sophie(sh879n) <sh879n@att.com>
This commit is contained in:
Huang,Sophie(sh879n) 2018-12-14 09:39:10 -06:00
parent 25e806a997
commit 3061ae3896
9 changed files with 45 additions and 0 deletions

View File

@ -109,6 +109,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ tuple "image" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
tcpSocket:
port: {{ tuple "image" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 30
volumeMounts:
- name: etcglance
mountPath: /etc/glance

View File

@ -74,6 +74,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ tuple "image_registry" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
tcpSocket:
port: {{ tuple "image_registry" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 30
volumeMounts:
- name: etcglance
mountPath: /etc/glance

View File

@ -74,6 +74,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ tuple "orchestration" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
tcpSocket:
port: {{ tuple "orchestration" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 30
volumeMounts:
- name: pod-etc-heat
mountPath: /etc/heat

View File

@ -74,6 +74,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
tcpSocket:
port: {{ tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 30
volumeMounts:
- name: pod-etc-heat
mountPath: /etc/heat

View File

@ -78,6 +78,14 @@ spec:
port: {{ tuple "dashboard" "internal" "web" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
httpGet:
scheme: HTTP
path: /
port: {{ tuple "dashboard" "internal" "web" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 180
periodSeconds: 60
timeoutSeconds: 5
volumeMounts:
- name: static-horizon
mountPath: /var/www/html/

View File

@ -79,6 +79,14 @@ spec:
port: {{ $portInt }}
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
httpGet:
scheme: HTTP
path: /
port: {{ $portInt }}
initialDelaySeconds: 50
periodSeconds: 20
timeoutSeconds: 5
volumeMounts:
- name: etckeystone
mountPath: /etc/keystone

View File

@ -91,6 +91,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ .Values.network.metadata.port }}
livenessProbe:
tcpSocket:
port: {{ .Values.network.metadata.port }}
initialDelaySeconds: 30
volumeMounts:
- name: nova-bin
mountPath: /tmp/nova-api-metadata.sh

View File

@ -74,6 +74,10 @@ spec:
readinessProbe:
tcpSocket:
port: {{ tuple "compute" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
livenessProbe:
tcpSocket:
port: {{ tuple "compute" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 30
volumeMounts:
- name: nova-bin
mountPath: /tmp/nova-api.sh

View File

@ -75,6 +75,11 @@ spec:
port: {{ tuple "placement" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
tcpSocket:
port: {{ tuple "placement" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 50
periodSeconds: 10
volumeMounts:
- name: wsgi-nova
mountPath: /var/www/cgi-bin/nova