spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
readOnly: true
- name: {{ include "common.fullname" . }}-logs
mountPath: {{ .Values.log.path }}
-{{ include "so.helpers.livenessProbe" .| indent 8 }}
+ {{- include "so.helpers.startupProbe" .| indent 8 }}
+ {{- include "so.helpers.livenessProbe" .| indent 8 }}
ports: {{ include "common.containerPorts" . | nindent 10 }}
# Filebeat sidecar container
{{ include "common.log.sidecar" . | nindent 6 }}
wait_for:
jobs:
- '{{ include "common.release" . }}-so-mariadb-config-job'
+ services:
+ - 'so-catalog-db-adapter'
#################################################################
# Secrets metaconfig
version: v2
replicaCount: 1
+revisionHistoryLimit: 1
minReadySeconds: 10
containerPort: &containerPort 8081
logPath: ./logs/bpmn/
livenessProbe:
path: /manage/health
scheme: HTTP
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
- name: config
mountPath: /app/config
readOnly: true
-{{ include "so.helpers.livenessProbe" .| indent 8 }}
+ {{- include "so.helpers.startupProbe" .| indent 8 }}
+ {{- include "so.helpers.livenessProbe" .| indent 8 }}
ports: {{ include "common.containerPorts" . | nindent 10 }}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
auth: Basic YnBlbDpwYXNzd29yZDEk
replicaCount: 1
+revisionHistoryLimit: 1
minReadySeconds: 10
containerPort: &containerPort 8082
logPath: ./logs/catdb/
path: /manage/health
port: 8082
scheme: HTTP
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ index .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
readOnly: true
- name: encoder
mountPath: /input
+ {{- include "so.helpers.startupProbe" .| indent 10 }}
livenessProbe:
httpGet:
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}}
requestDb:
auth: ${REQUEST_AUTH}
replicaCount: 1
+revisionHistoryLimit: 1
minReadySeconds: 10
containerPort: &containerPort 8090
logPath: ./logs/cnf-adapter/
path: /manage/health
port: 8090
scheme: HTTP
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ index .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
key: 566B754875657232314F5548556D3665
replicaCount: 1
+revisionHistoryLimit: 1
minReadySeconds: 10
containerPort: &containerPort 9888
logPath: ./logs/so-cnfm-lcm/
livenessProbe:
port: *containerPort
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
+ initialDelaySeconds: 60
successThreshold: 1
failureThreshold: 3
nameOverride: so-cnfm-lcm
roles:
- read
-
spec:
selector: {{- include "common.selectors" . | nindent 4 }}
replicas: {{ index .Values.replicaCount }}
+ revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
minReadySeconds: {{ index .Values.minReadySeconds }}
strategy:
type: {{ index .Values.updateStrategy.type }}
- name: config
mountPath: /app/config
readOnly: true
-{{ include "so.helpers.livenessProbe" .| indent 8 }}
+ {{- include "so.helpers.startupProbe" .| indent 8 }}
+ {{- include "so.helpers.livenessProbe" .| indent 8 }}
ports: {{- include "common.containerPorts" . | nindent 10 }}
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
auth: Basic YnBlbDpwYXNzd29yZDEk
replicaCount: 1
+revisionHistoryLimit: 1
minReadySeconds: 10
containerPort: &containerPort 8083
logPath: ./logs/reqdb/
path: /manage/health
port: 8083
scheme: HTTP
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
apiVersion: v2
description: A Helm chart for SO helpers
name: soHelpers
-version: 13.0.0
+version: 13.0.1
dependencies:
- name: common
path: {{ $subchartDot.Values.livenessProbe.path }}
port: {{ $subchartDot.Values.containerPort }}
scheme: {{ $subchartDot.Values.livenessProbe.scheme }}
+{{- if $subchartDot.Values.livenessProbe.initialDelaySeconds }}
initialDelaySeconds: {{ $subchartDot.Values.livenessProbe.initialDelaySeconds }}
+{{- end }}
periodSeconds: {{ $subchartDot.Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ $subchartDot.Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ $subchartDot.Values.livenessProbe.successThreshold }}
--- /dev/null
+{{- define "so.helpers.startupProbe" -}}
+{{- $dot := default . .dot -}}
+{{- $initRoot := default $dot.Values.soHelpers .initRoot -}}
+{{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
+startupProbe:
+ httpGet:
+ path: {{ $subchartDot.Values.startupProbe.path }}
+ port: {{ $subchartDot.Values.containerPort }}
+ scheme: {{ $subchartDot.Values.startupProbe.scheme }}
+ periodSeconds: {{ $subchartDot.Values.startupProbe.periodSeconds }}
+ timeoutSeconds: {{ $subchartDot.Values.startupProbe.timeoutSeconds }}
+ successThreshold: {{ $subchartDot.Values.startupProbe.successThreshold }}
+ failureThreshold: {{ $subchartDot.Values.startupProbe.failureThreshold }}
+{{- end -}}
# Application configuration defaults.
#################################################################
+startupProbe:
+ path: /manage/health
+ scheme: HTTP
+ periodSeconds: 3
+ timeoutSeconds: 3
+ successThreshold: 1
+ failureThreshold: 200
livenessProbe:
path: /manage/health
scheme: HTTP
- initialDelaySeconds: 600
- periodSeconds: 60
+ periodSeconds: 20
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3