cpu: "2"
memory: "600Mi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "300Mi"
large:
limits:
name: {{ .Values.profiling.portName }}
{{- end }}
{{ include "common.containerPorts" . | nindent 12 }}
+ startupProbe:
+ tcpSocket:
+ port: {{ .Values.service.internalPort }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
# disable liveness probe when
# debugging.enabled=true or profiling.enabled=true
{{- if and .Values.liveness.enabled (not (or .Values.debug.enabled .Values.profiling.enabled)) }}
livenessProbe:
tcpSocket:
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end }}
readinessProbe:
tcpSocket:
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
env:
- name: KEY_STORE_PASSWORD
# probe configuration parameters
liveness:
- initialDelaySeconds: 10
periodSeconds: 10
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
enabled: false
readiness:
- initialDelaySeconds: 10
periodSeconds: 10
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+
service:
type: NodePort
internalPort: 9516
cpu: "1"
memory: "2500Mi"
requests:
- cpu: "100m"
+ cpu: "200m"
memory: "1Gi"
large:
limits:
sleep 3
fi
done
+ resources:
+ limits:
+ cpu: 50m
+ memory: 50Mi
+ requests:
+ cpu: 3m
+ memory: 20Mi
{{ include "common.containerSecurityContext" . | indent 2 | trim }}
{{- end -}}
httpGet:
port: {{ .Values.service.actuatorPort }}
path: {{ .Values.liveness.path }}
- {{- if .Values.liveness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{- end }}
readinessProbe:
httpGet:
port: {{ .Values.service.actuatorPort }}
path: {{ .Values.readiness.path }}
- {{- if .Values.readiness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
startupProbe:
httpGet:
startup:
path: /actuator/health/liveness
- failureThreshold: 60
- periodSeconds: 5
+ failureThreshold: 90
+ periodSeconds: 2
actuator:
echo:
cpu: "1"
memory: "4Gi"
requests:
- cpu: "500m"
+ cpu: "200m"
memory: "1Gi"
large:
limits:
httpGet:
port: {{ .Values.service.metricsPort }}
path: {{ .Values.liveness.path }}
- {{- if .Values.liveness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
{{- end }}
httpGet:
port: {{ .Values.service.metricsPort }}
path: {{ .Values.readiness.path }}
- {{- if .Values.readiness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
startupProbe:
startup:
path: /actuator/health/liveness
- failureThreshold: 60
- periodSeconds: 5
+ failureThreshold: 90
+ periodSeconds: 2
timeoutSeconds: 3
actuator:
cpu: "2"
memory: "4Gi"
requests:
- cpu: "1"
- memory: "3Gi"
+ cpu: "500m"
+ memory: "2Gi"
large:
limits:
cpu: "8"
- containerPort: {{ .Values.service.profilingPort }}
name: {{ .Values.service.profilingPortName }}
{{- end }}
+ startupProbe:
+ tcpSocket:
+ port: {{ .Values.service.appPort }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
# disable liveness probe when
# debugging.enabled=true or profiling.enabled=true
{{- if and .Values.liveness.enabled (not (or .Values.debug.enabled .Values.profiling.enabled)) }}
livenessProbe:
tcpSocket:
port: {{ .Values.service.appPort }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end }}
readinessProbe:
tcpSocket:
port: {{ .Values.service.appPort }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
resources: {{ include "common.resources" . | nindent 10 }}
{{- if .Values.nodeSelector }}
# probe configuration parameters
liveness:
enabled: true
- initialDelaySeconds: 60
periodSeconds: 60
readiness:
- initialDelaySeconds: 60
periodSeconds: 10
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+
service:
type: ClusterIP
appPortName: http
cpu: "2"
memory: "4Gi"
requests:
- cpu: "1"
+ cpu: "300m"
memory: "3Gi"
large:
limits:
- name: JVM_ARGS
value: {{ .Values.debug.args | quote }}
{{- end }}
+ startupProbe:
+ tcpSocket:
+ port: {{ .Values.service.internalPort }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
# disable liveness probe when
# debugging.enabled=true or profiling.enabled=true
{{- if and .Values.liveness.enabled (not (or .Values.debug.enabled .Values.profiling.enabled)) }}
livenessProbe:
tcpSocket:
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{- end }}
readinessProbe:
tcpSocket:
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
- startupProbe:
- tcpSocket:
- port: {{ .Values.service.internalPort }}
- failureThreshold: {{ .Values.startup.failureThreshold }}
- periodSeconds: {{ .Values.startup.periodSeconds }}
resources: {{ include "common.resources" . | nindent 10 }}
{{- if .Values.nodeSelector }}
nodeSelector:
# probe configuration parameters
liveness:
- initialDelaySeconds: 10
periodSeconds: 10
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
enabled: true
readiness:
- initialDelaySeconds: 10
periodSeconds: 10
startup:
failureThreshold: 90
- periodSeconds: 1
+ periodSeconds: 2
service:
type: NodePort
while (netstat -an | grep ESTABLISHED | grep -e $INTERNAL_PORT_1)
do sleep 3
done
+ startupProbe:
+ httpGet:
+ port: {{ .Values.service.metricsPort }}
+ path: {{ .Values.startup.path }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
# disable liveness probe when
# debugging.enable=true or profiling.enabled=true
{{- if and .Values.liveness.enabled (not (or .Values.config.debug.enabled .Values.config.profiling.enabled)) }}
httpGet:
port: {{ .Values.service.metricsPort }}
path: {{ .Values.liveness.path }}
- {{- if .Values.liveness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{- end }}
readinessProbe:
httpGet:
port: {{ .Values.service.metricsPort }}
path: {{ .Values.readiness.path }}
- {{- if .Values.readiness.initialDelaySeconds }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
- {{- end }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
resources: {{ include "common.resources" . | nindent 10 }}
{{- if .Values.nodeSelector }}
# probe configuration parameters
liveness:
path: /actuator/health
- initialDelaySeconds: 60
periodSeconds: 60
enabled: true
readiness:
path: /actuator/health/readiness
- initialDelaySeconds: 10
periodSeconds: 10
+startup:
+ path: /actuator/health
+ periodSeconds: 2
+ failureThreshold: 90
+
actuator:
echo:
enabled: true
cpu: "2"
memory: "4Gi"
requests:
- cpu: "1"
+ cpu: "500m"
memory: "3Gi"
large:
limits:
cpu: "2"
memory: "4Gi"
requests:
- cpu: "500m"
- memory: "1200Mi"
+ cpu: "300m"
+ memory: "500Mi"
large:
limits:
cpu: "4"
cpu: 500m
memory: 500Mi
requests:
- cpu: 500m
- memory: 500Mi
+ cpu: 200m
+ memory: 200Mi
initContainers:
waitForRedis:
cpu: "1"
memory: "200Mi"
requests:
- cpu: "0.5"
+ cpu: "300m"
memory: "200Mi"
large:
limits:
httpGet:
path: /api/v1/sdclistener/healthcheck
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{end}}
readinessProbe:
httpGet:
path: /api/v1/sdclistener/healthcheck
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
+ startupProbe:
+ httpGet:
+ path: /api/v1/sdclistener/healthcheck
+ port: {{ .Values.service.internalPort }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
volumeMounts:
- mountPath: {{ .Values.config.appConfigDir }}/application.yaml
name: {{ include "common.fullname" . }}-config
# probe configuration parameters
liveness:
- initialDelaySeconds: 10
periodSeconds: 10
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
enabled: true
readiness:
- initialDelaySeconds: 10
periodSeconds: 10
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+
service:
type: ClusterIP
name: cds-sdc-listener
small:
limits:
cpu: "1500m"
- memory: "700Mi"
+ memory: "1000Mi"
requests:
- cpu: "0.5"
- memory: "700Mi"
+ cpu: "200m"
+ memory: "500Mi"
large:
limits:
cpu: "2"
cpu: "1"
memory: "200Mi"
requests:
- cpu: "0.5"
+ cpu: "200m"
memory: "200Mi"
large:
limits:
httpGet:
port: {{ .Values.liveness.port }}
path: {{ .Values.liveness.path }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end -}}
readinessProbe:
httpGet:
port: {{ .Values.readiness.port }}
path: {{ .Values.readiness.path }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
+ startupProbe:
+ httpGet:
+ port: {{ .Values.startup.port }}
+ path: {{ .Values.startup.path }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.config.spring.profile }}
cpu: "3"
memory: "2Gi"
requests:
- cpu: "1"
- memory: "2Gi"
+ cpu: "300m"
+ memory: "1Gi"
large:
limits:
cpu: "4"
unlimited: {}
# probe configuration parameters
liveness:
- initialDelaySeconds: 20
periodSeconds: 20
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
port: *mgt_port
readiness:
- initialDelaySeconds: 15
periodSeconds: 15
path: /manage/health
port: *mgt_port
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+ path: /manage/health
+ port: *mgt_port
+
ingress:
enabled: true
service:
httpGet:
port: {{ .Values.liveness.port }}
path: {{ .Values.liveness.path }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end -}}
readinessProbe:
httpGet:
port: {{ .Values.readiness.port }}
path: {{ .Values.readiness.path }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
+ startupProbe:
+ httpGet:
+ port: {{ .Values.startup.port }}
+ path: {{ .Values.startup.path }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.config.spring.profile }}
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "1Gi"
large:
limits:
unlimited: {}
# probe configuration parameters
liveness:
- initialDelaySeconds: 20
periodSeconds: 20
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
port: *svc_port
readiness:
- initialDelaySeconds: 15
periodSeconds: 15
path: /actuator/health
port: *svc_port
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+ path: /actuator/health
+ port: *svc_port
+
ingress:
enabled: true
service:
cpu: "2"
memory: "500Mi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "500Mi"
large:
limits:
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "500m"
memory: "1Gi"
large:
limits:
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "300m"
memory: "1Gi"
large:
limits:
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "1Gi"
large:
limits:
cpu: "2"
memory: "500Mi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "500Mi"
large:
limits:
cpu: "4"
memory: "1Gi"
requests:
- cpu: "2"
+ cpu: "500m"
memory: "1Gi"
unlimited: {}
cpu: "2"
memory: "3Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "3Gi"
large:
limits:
cpu: "2"
memory: "1.5Gi"
requests:
- cpu: "1"
+ cpu: "500m"
memory: "1.5Gi"
large:
limits:
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "1Gi"
large:
limits:
livenessProbe:
tcpSocket:
port: {{ .Values.service.internalPort }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{- end }}
readinessProbe:
scheme: HTTP
successThreshold: {{ .Values.readiness.successThreshold }}
failureThreshold: {{ .Values.readiness.failureThreshold }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
timeoutSeconds: {{ .Values.readiness.timeout }}
+ startupProbe:
+ httpGet:
+ path: {{ .Values.startup.api }}
+ port: {{ .Values.service.internalPort }}
+ httpHeaders:
+ - name: Authorization
+ value: Basic {{ printf "%s:%s" .Values.restServer.user .Values.restServer.password | b64enc }}
+ scheme: HTTP
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
+ timeoutSeconds: {{ .Values.startup.timeout }}
volumeMounts:
- name: logs
mountPath: /var/log/onap
# probe configuration parameters
liveness:
- initialDelaySeconds: 120
periodSeconds: 10
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
enabled: true
readiness:
- initialDelaySeconds: 10
periodSeconds: 120
api: /policy/api/v1/healthcheck
successThreshold: 1
failureThreshold: 3
timeout: 120
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+ api: /policy/api/v1/healthcheck
+ timeout: 120
+
service:
type: ClusterIP
name: policy-api
cpu: "3"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "300m"
memory: "1Gi"
large:
limits:
cpu: "2"
memory: "4Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "2Gi"
large:
limits:
readinessProbe:
tcpSocket:
port: {{ index .Values.readinessProbe.port }}
- initialDelaySeconds: {{ index .Values.readinessProbe.initialDelaySeconds}}
periodSeconds: {{ index .Values.readinessProbe.periodSeconds}}
livenessProbe:
tcpSocket:
port: {{ index .Values.livenessProbe.port }}
- initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
successThreshold: {{ index .Values.livenessProbe.successThreshold}}
failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
+ startupProbe:
+ tcpSocket:
+ port: {{ index .Values.startupProbe.port }}
+ periodSeconds: {{ index .Values.startupProbe.periodSeconds}}
+ failureThreshold: {{ index .Values.startupProbe.failureThreshold}}
ports: {{ include "common.containerPorts" . | nindent 10 }}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
resources:
small:
requests:
- cpu: "1"
+ cpu: "0.3"
memory: "1Gi"
limits:
cpu: "2"
unlimited: {}
readinessProbe:
port: 9091
- initialDelaySeconds: 40
periodSeconds: 10
timeoutSeconds: 10
livenessProbe:
port: 9091
- initialDelaySeconds: 80
periodSeconds: 10
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
+startupProbe:
+ port: 9091
+ periodSeconds: 2
+ failureThreshold: 90
+ timeoutSeconds: 10
ingress:
enabled: false
service:
cpu: "2"
memory: "3Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "3Gi"
large:
limits:
livenessProbe:
tcpSocket:
port: {{ index .Values.livenessProbe.port }}
- initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
successThreshold: {{ index .Values.livenessProbe.successThreshold}}
failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
+ startupProbe:
+ tcpSocket:
+ port: {{ index .Values.startupProbe.port }}
+ periodSeconds: {{ index .Values.startupProbe.periodSeconds}}
+ failureThreshold: {{ index .Values.startupProbe.failureThreshold}}
ports: {{ include "common.containerPorts" . | nindent 12 }}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
cpu: "4"
memory: "4Gi"
requests:
- cpu: "2"
+ cpu: "500m"
memory: "1Gi"
large:
limits:
port: *containerPort
periodSeconds: 20
timeoutSeconds: 10
- initialDelaySeconds: 60
successThreshold: 1
failureThreshold: 3
+startupProbe:
+ port: *containerPort
+ periodSeconds: 2
+ failureThreshold: 90
+ timeoutSeconds: 10
+
ingress:
enabled: false
service:
cpu: "1"
memory: "3Gi"
requests:
- cpu: "0.5"
+ cpu: "200m"
memory: "2Gi"
large:
limits:
cpu: "1"
memory: "1Gi"
requests:
- cpu: "0.5"
+ cpu: "300m"
memory: "1Gi"
large:
limits:
cpu: "1"
memory: "3Gi"
requests:
- cpu: "0.5"
+ cpu: "200m"
memory: "2Gi"
large:
limits:
path: {{ index .Values.livenessProbe.path}}
port: {{ index .Values.containerPort }}
scheme: {{ index .Values.livenessProbe.scheme}}
- initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
timeoutSeconds: {{ index .Values.livenessProbe.timeoutSeconds}}
successThreshold: {{ index .Values.livenessProbe.successThreshold}}
failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
+ startupProbe:
+ httpGet:
+ path: {{ index .Values.startupProbe.path}}
+ port: {{ index .Values.containerPort }}
+ scheme: {{ index .Values.startupProbe.scheme}}
+ periodSeconds: {{ index .Values.startupProbe.periodSeconds}}
+ timeoutSeconds: {{ index .Values.startupProbe.timeoutSeconds}}
+ successThreshold: {{ index .Values.startupProbe.successThreshold}}
+ failureThreshold: {{ index .Values.startupProbe.failureThreshold}}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: logs
cpu: "2"
memory: "2Gi"
requests:
- cpu: "1"
+ cpu: "200m"
memory: "2Gi"
large:
limits:
path: /manage/health
port: 8088
scheme: HTTP
- initialDelaySeconds: 600
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
+startupProbe:
+ path: /manage/health
+ port: 8088
+ scheme: HTTP
+ periodSeconds: 2
+ timeoutSeconds: 10
+ successThreshold: 1
+ failureThreshold: 90
ingress:
enabled: false
serviceMesh:
cpu: "1"
memory: "1Gi"
requests:
- cpu: "0.5"
+ cpu: "200m"
memory: "1Gi"
large:
limits:
- name: {{ include "common.fullname" . }}-logs
mountPath: /var/log/onap
{{ include "so.helpers.livenessProbe" .| indent 8 }}
+{{ include "so.helpers.startupProbe" .| indent 8 }}
ports: {{- include "common.containerPorts" . | nindent 10 }}
# Filebeat sidecar container
{{ include "common.log.sidecar" . | nindent 6 }}
path: /manage/health
port: 8087
scheme: HTTP
- initialDelaySeconds: 600
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
+startupProbe:
+ path: /manage/health
+ port: 8087
+ scheme: HTTP
+ periodSeconds: 2
+ failureThreshold: 90
+ timeoutSeconds: 10
ingress:
enabled: false
serviceMesh:
cpu: "2"
memory: "1.5Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "1.5Gi"
large:
limits:
- name: {{ include "common.fullname" . }}-logs
mountPath: {{ .Values.log.path }}
{{ include "so.helpers.livenessProbe" .| indent 8 }}
+{{ include "so.helpers.startupProbe" .| indent 8 }}
ports: {{ include "common.containerPorts" . | nindent 10 }}
# Filebeat sidecar container
{{ include "common.log.sidecar" . | nindent 6 }}
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "200Mi"
large:
limits:
cpu: "2"
memory: "1Gi"
requests:
- cpu: "1"
+ cpu: "0.5"
memory: "200Mi"
large:
limits:
livenessProbe:
tcpSocket:
port: {{ index .Values.service.ports 0 "port" }}
- initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end -}}
readinessProbe:
tcpSocket:
port: {{ index .Values.service.ports 0 "port" }}
- initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
+ startupProbe:
+ tcpSocket:
+ port: {{ index .Values.service.ports 0 "port" }}
+ periodSeconds: {{ .Values.startup.periodSeconds }}
+ failureThreshold: {{ .Values.startup.failureThreshold }}
volumeMounts:
- mountPath: /home/uui/server.xml
name: config
# probe configuration parameters
liveness:
- initialDelaySeconds: 10
periodSeconds: 10
# necessary to disable liveness probe when setting breakpoints
# in debugger so K8s doesn't restart unresponsive container
enabled: true
readiness:
- initialDelaySeconds: 10
periodSeconds: 10
+startup:
+ periodSeconds: 2
+ failureThreshold: 90
+
service:
type: ClusterIP
name: uui