diff --git a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml index 555b913..7b7a52c 100644 --- a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml +++ b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml @@ -100,15 +100,15 @@ spec: command: ["python3", "/opt/locationservice/locationservice_start.py"] {{- if .Values.location.endpoint.liveness }} livenessProbe: - failureThreshold: 3 + failureThreshold: {{ .Values.location.endpoint.livenessFailureThreshold}} httpGet: path: /health port: {{ .Values.location.endpoint.port }} scheme: HTTP - initialDelaySeconds: 60 - periodSeconds: 3 + initialDelaySeconds: {{ .Values.location.endpoint.livenessDelaySeconds }} + periodSeconds: {{ .Values.location.endpoint.livenessPeriodSeconds }} successThreshold: 1 - timeoutSeconds: 3 + timeoutSeconds: {{ .Values.location.endpoint.livenessTimeoutSeconds }} {{ end }} volumeMounts: - name: scripts @@ -179,15 +179,15 @@ spec: command: ["python3", "/mnt/ptptracking_start_v2.py"] {{- if .Values.ptptrackingv2.endpoint.liveness }} livenessProbe: - failureThreshold: 3 + failureThreshold: {{ .Values.ptptrackingv2.endpoint.livenessFailureThreshold }} httpGet: path: /health port: {{ .Values.ptptrackingv2.endpoint.port }} scheme: HTTP - initialDelaySeconds: 60 - periodSeconds: 3 + initialDelaySeconds: {{ .Values.ptptrackingv2.endpoint.livenessDelaySeconds }} + periodSeconds: {{ .Values.ptptrackingv2.endpoint.livenessPeriodSeconds }} successThreshold: 1 - timeoutSeconds: 3 + timeoutSeconds: {{ .Values.ptptrackingv2.endpoint.livenessTimeoutSeconds }} {{ end }} securityContext: privileged: true @@ -282,15 +282,15 @@ spec: command: ["python3", "/mnt/ptptracking_start.py"] {{- if .Values.ptptracking.endpoint.liveness }} livenessProbe: - failureThreshold: 3 + failureThreshold: {{ .Values.ptptracking.endpoint.livenessFailureThreshold }} httpGet: path: /health port: {{ .Values.ptptracking.endpoint.port }} scheme: HTTP - initialDelaySeconds: 60 - periodSeconds: 3 + initialDelaySeconds: {{ .Values.ptptracking.endpoint.livenessDelaySeconds }} + periodSeconds: {{ .Values.ptptracking.endpoint.livenessPeriodSeconds }} successThreshold: 1 - timeoutSeconds: 3 + timeoutSeconds: {{ .Values.ptptracking.endpoint.livenessTimeoutSeconds }} {{ end }} securityContext: privileged: true diff --git a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/values.yaml b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/values.yaml index f3f7650..932fdda 100644 --- a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/values.yaml +++ b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/values.yaml @@ -66,6 +66,10 @@ location: endpoint: port: 8080 liveness: False + livenessDelaySeconds: 60 + livenessPeriodSeconds: 3 + livenessFailureThreshold: 3 + livenessTimeoutSeconds: 3 image: repository: starlingx/locationservice-base tag: stx.10.0-v2.2.1 @@ -83,6 +87,10 @@ ptptracking: endpoint: port: 8081 liveness: False + livenessDelaySeconds: 60 + livenessPeriodSeconds: 3 + livenessFailureThreshold: 3 + livenessTimeoutSeconds: 3 image: repository: starlingx/notificationservice-base tag: stx.10.0-v2.2.1 @@ -105,6 +113,10 @@ ptptrackingv2: endpoint: port: 8082 liveness: False + livenessDelaySeconds: 60 + livenessPeriodSeconds: 3 + livenessFailureThreshold: 3 + livenessTimeoutSeconds: 3 image: repository: starlingx/notificationservice-base-v2 tag: stx.10.0-v2.2.1