Liveness and readiness probes
Commented implementation until kubernetes issues are resolved. Story: 2008132 Task: 41317 Signed-off-by: Nicolas Alvarez <nicolas.alvarez@windriver.com> Change-Id: I1d4018f6f92344097661116a4267129d560ade71
This commit is contained in:
parent
67e1939509
commit
58bdb27379
@ -34,6 +34,25 @@ spec:
|
||||
protocol: UDP
|
||||
- containerPort: 705
|
||||
protocol: TCP
|
||||
# Issues with liveness and readiness: https://bit.ly/3nVRQrL
|
||||
# K8s issue related: https://github.com/kubernetes/kubernetes/issues/81713
|
||||
#
|
||||
# livenessProbe:
|
||||
# tcpSocket:
|
||||
# port: 705
|
||||
# initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
||||
# readinessProbe:
|
||||
# tcpSocket:
|
||||
# port: 705
|
||||
# initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||
volumeMounts:
|
||||
- name: snmpd-etc-volume
|
||||
mountPath: /etc/snmp
|
||||
@ -43,12 +62,58 @@ spec:
|
||||
volumeMounts:
|
||||
- name: snmpd-fm-volume
|
||||
mountPath: /etc/fm/
|
||||
# Fail on liveness and readiness as here: https://bit.ly/3nVRQrL
|
||||
# K8s issue related: https://github.com/kubernetes/kubernetes/issues/81713
|
||||
#
|
||||
# args:
|
||||
# - /bin/sh
|
||||
# - -c
|
||||
# - touch /tmp/healthy
|
||||
# livenessProbe:
|
||||
# exec:
|
||||
# command:
|
||||
# - cat
|
||||
# - /tmp/healthy
|
||||
# initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
||||
# readinessProbe:
|
||||
# exec:
|
||||
# command:
|
||||
# - cat
|
||||
# - /tmp/healthy
|
||||
# initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||
- name: {{ .Values.image.trap_subagent_name }}
|
||||
image: "{{ .Values.image.repository_trap_subagent }}:{{ .Values.image.tag_trap_subagent }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy_trap_subagent }}
|
||||
ports:
|
||||
- containerPort: 162
|
||||
protocol: TCP
|
||||
# Fail on liveness and readiness as here: https://bit.ly/3nVRQrL
|
||||
# K8s issue related: https://github.com/kubernetes/kubernetes/issues/81713
|
||||
#
|
||||
# livenessProbe:
|
||||
# tcpSocket:
|
||||
# port: 162
|
||||
# initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
||||
# readinessProbe:
|
||||
# tcpSocket:
|
||||
# port: 162
|
||||
# initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
||||
# periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
||||
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||
|
||||
volumes:
|
||||
- name: snmpd-etc-volume
|
||||
|
@ -33,3 +33,16 @@ service:
|
||||
name: snmpd-service
|
||||
type: NodePort
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
successThreshold: 1
|
||||
failureThreshold: 1
|
||||
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
successThreshold: 1
|
||||
failureThreshold: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user