Add termination policy customization in helm chart (#2255)
Currently default pod termination logs go to /dev/termination-log. With CI we need to change customize path somewhere to /var/log for exporting logs with the kind export logs command. Setting FallbackToLogsOnError as termination policy for skaffold. Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -41,5 +41,11 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: GA_TRACKING_ID
|
- name: GA_TRACKING_ID
|
||||||
value: "{{ .Values.gaTrackingID }}"
|
value: "{{ .Values.gaTrackingID }}"
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -41,5 +41,11 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: GA_TRACKING_ID
|
- name: GA_TRACKING_ID
|
||||||
value: "{{ .Values.gaTrackingID }}"
|
value: "{{ .Values.gaTrackingID }}"
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ spec:
|
|||||||
value: {{ .Values.pprof.enabled | quote }}
|
value: {{ .Values.pprof.enabled | quote }}
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.priorityClassName }}
|
{{- if .Values.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.priorityClassName }}
|
priorityClassName: {{ .Values.priorityClassName }}
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: "/healthz"
|
path: "/healthz"
|
||||||
@@ -61,6 +67,7 @@ spec:
|
|||||||
- containerPort: 6060
|
- containerPort: 6060
|
||||||
name: pprof
|
name: pprof
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
|
|||||||
@@ -78,6 +78,16 @@ spec:
|
|||||||
- containerPort: 6060
|
- containerPort: 6060
|
||||||
name: pprof
|
name: pprof
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.executor.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.executor.terminationMessagePath }}
|
||||||
|
{{- else if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.executor.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.executor.terminationMessagePolicy }}
|
||||||
|
{{- else if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.executor.priorityClassName }}
|
{{- if .Values.executor.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.executor.priorityClassName }}
|
priorityClassName: {{ .Values.executor.priorityClassName }}
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ spec:
|
|||||||
value: {{ .Values.pprof.enabled | quote }}
|
value: {{ .Values.pprof.enabled | quote }}
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.priorityClassName }}
|
{{- if .Values.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.priorityClassName }}
|
priorityClassName: {{ .Values.priorityClassName }}
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ spec:
|
|||||||
value: {{ .Values.pprof.enabled | quote }}
|
value: {{ .Values.pprof.enabled | quote }}
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.extraCoreComponentPodConfig }}
|
{{- if .Values.extraCoreComponentPodConfig }}
|
||||||
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
||||||
|
|||||||
@@ -55,6 +55,12 @@ spec:
|
|||||||
- name: kafka-secrets
|
- name: kafka-secrets
|
||||||
mountPath: /etc/fission/secrets
|
mountPath: /etc/fission/secrets
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.kafka.authentication.tls.enabled }}
|
{{- if .Values.kafka.authentication.tls.enabled }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -51,6 +51,12 @@ spec:
|
|||||||
port: 4223
|
port: 4223
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.extraCoreComponentPodConfig }}
|
{{- if .Values.extraCoreComponentPodConfig }}
|
||||||
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ spec:
|
|||||||
value: "{{ .Values.mqt_keda.connector_images.redis.image }}:{{ .Values.mqt_keda.connector_images.redis.tag }}"
|
value: "{{ .Values.mqt_keda.connector_images.redis.image }}:{{ .Values.mqt_keda.connector_images.redis.tag }}"
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.priorityClassName }}
|
{{- if .Values.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.priorityClassName }}
|
priorityClassName: {{ .Values.priorityClassName }}
|
||||||
|
|||||||
@@ -35,5 +35,11 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||||
command: [ "/pre-upgrade-checks" ]
|
command: [ "/pre-upgrade-checks" ]
|
||||||
args: ["--fn-pod-namespace", "{{ .Values.functionNamespace }}", "--envbuilder-namespace", "{{ .Values.builderNamespace }}"]
|
args: ["--fn-pod-namespace", "{{ .Values.functionNamespace }}", "--envbuilder-namespace", "{{ .Values.builderNamespace }}"]
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -89,6 +89,16 @@ spec:
|
|||||||
- containerPort: 6060
|
- containerPort: 6060
|
||||||
name: pprof
|
name: pprof
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.router.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.router.terminationMessagePath }}
|
||||||
|
{{- else if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.router.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.router.terminationMessagePolicy }}
|
||||||
|
{{- else if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.router.priorityClassName }}
|
{{- if .Values.router.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.router.priorityClassName }}
|
priorityClassName: {{ .Values.router.priorityClassName }}
|
||||||
|
|||||||
@@ -76,6 +76,12 @@ spec:
|
|||||||
- containerPort: 6060
|
- containerPort: 6060
|
||||||
name: pprof
|
name: pprof
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if and (.Values.persistence.enabled) (ne (.Values.persistence.storageType | default "local") "s3") }}
|
{{- if and (.Values.persistence.enabled) (ne (.Values.persistence.storageType | default "local") "s3") }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ spec:
|
|||||||
value: {{ .Values.pprof.enabled | quote }}
|
value: {{ .Values.pprof.enabled | quote }}
|
||||||
{{- include "opentracing.envs" . | indent 8 }}
|
{{- include "opentracing.envs" . | indent 8 }}
|
||||||
{{- include "opentelemtry.envs" . | indent 8 }}
|
{{- include "opentelemtry.envs" . | indent 8 }}
|
||||||
|
{{- if .Values.terminationMessagePath }}
|
||||||
|
terminationMessagePath: {{ .Values.terminationMessagePath }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.terminationMessagePolicy }}
|
||||||
|
terminationMessagePolicy: {{ .Values.terminationMessagePolicy }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: fission-svc
|
serviceAccountName: fission-svc
|
||||||
{{- if .Values.priorityClassName }}
|
{{- if .Values.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.priorityClassName }}
|
priorityClassName: {{ .Values.priorityClassName }}
|
||||||
|
|||||||
@@ -38,6 +38,18 @@ pullPolicy: IfNotPresent
|
|||||||
##
|
##
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
|
## terminationMessagePath is the path at which the pod termination message will be written.
|
||||||
|
## executor.terminationMessagePath takes precedence over this value for executor.
|
||||||
|
## router.terminationMessagePath takes precedence over this value for router.
|
||||||
|
##
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
|
||||||
|
## terminationMessagePolicy is the policy for the termination message.
|
||||||
|
## executor.terminationMessagePolicy takes precedence over this value for executor.
|
||||||
|
## router.terminationMessagePolicy takes precedence over this value for router.
|
||||||
|
##
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
|
||||||
## controllerPort represents the port at which the Fission controller service should be exposed.
|
## controllerPort represents the port at which the Fission controller service should be exposed.
|
||||||
##
|
##
|
||||||
controllerPort: 31313
|
controllerPort: 31313
|
||||||
@@ -99,6 +111,12 @@ executor:
|
|||||||
## Recommended to use system-cluster-critical for executor pods.
|
## Recommended to use system-cluster-critical for executor pods.
|
||||||
##
|
##
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
## terminationMessagePath is the path at which the file to which the executor will write a message upon termination.
|
||||||
|
##
|
||||||
|
terminationMessagePath: ""
|
||||||
|
## terminationMessagePolicy is the policy for the executor termination message.
|
||||||
|
##
|
||||||
|
terminationMessagePolicy: ""
|
||||||
## adoptExistingResources decides whether to adopt existing resources when executor restarts or Fission is redeployed.
|
## adoptExistingResources decides whether to adopt existing resources when executor restarts or Fission is redeployed.
|
||||||
##
|
##
|
||||||
adoptExistingResources: false
|
adoptExistingResources: false
|
||||||
@@ -115,6 +133,12 @@ router:
|
|||||||
## Recommended to use system-cluster-critical for router pods.
|
## Recommended to use system-cluster-critical for router pods.
|
||||||
##
|
##
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
## terminationMessagePath is the path at which the file to which the router will write a message upon termination.
|
||||||
|
##
|
||||||
|
terminationMessagePath: ""
|
||||||
|
## terminationMessagePolicy is the policy for the router termination message.
|
||||||
|
##
|
||||||
|
terminationMessagePolicy: ""
|
||||||
## deployAsDaemonSet decides whether to deploy router as a DaemonSet or a Deployment.
|
## deployAsDaemonSet decides whether to deploy router as a DaemonSet or a Deployment.
|
||||||
##
|
##
|
||||||
deployAsDaemonSet: false
|
deployAsDaemonSet: false
|
||||||
|
|||||||
+4
-1
@@ -53,7 +53,10 @@ deploy:
|
|||||||
openTracing.enabled: false
|
openTracing.enabled: false
|
||||||
openTelemetry.otlpCollectorEndpoint: ""
|
openTelemetry.otlpCollectorEndpoint: ""
|
||||||
openTelemetry.otlpInsecure: true
|
openTelemetry.otlpInsecure: true
|
||||||
priorityClassName: "system-cluster-critical"
|
priorityClassName: system-cluster-critical
|
||||||
|
# Use /var/log directory for kind logs export
|
||||||
|
terminationMessagePath: /var/log/termination-log
|
||||||
|
terminationMessagePolicy: FallbackToLogsOnError
|
||||||
wait: true
|
wait: true
|
||||||
flags:
|
flags:
|
||||||
install:
|
install:
|
||||||
|
|||||||
Reference in New Issue
Block a user