feat: add option to customize probes
This commit is contained in:
parent
6ef34f5f60
commit
1c22e90d85
@ -26,20 +26,18 @@ spec:
|
|||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
{{- with .Values.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{- toYaml . | nindent 12 }}
|
||||||
scheme: HTTP
|
{{- end }}
|
||||||
path: /healthz
|
|
||||||
port: http
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.config.ATHENS_PORT | default 3000 }}
|
containerPort: {{ .Values.config.ATHENS_PORT | default 3000 }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{- toYaml . | nindent 12 }}
|
||||||
scheme: HTTP
|
{{- end }}
|
||||||
path: /healthz
|
|
||||||
port: http
|
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.extraVolumeMounts }}
|
{{- with .Values.extraVolumeMounts }}
|
||||||
|
12
values.yaml
12
values.yaml
@ -102,6 +102,12 @@ config: {}
|
|||||||
# MY_S3_BUCKET_NAME:
|
# MY_S3_BUCKET_NAME:
|
||||||
# PROXY_FORCE_SSL:
|
# PROXY_FORCE_SSL:
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTP
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
@ -137,6 +143,12 @@ ingress:
|
|||||||
hosts:
|
hosts:
|
||||||
- "your-hostname"
|
- "your-hostname"
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTP
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
Loading…
Reference in New Issue
Block a user