diff --git a/.changesets/feat_add_lifecycle_support_to_helm_chart.md b/.changesets/feat_add_lifecycle_support_to_helm_chart.md new file mode 100644 index 0000000000..e6049c9952 --- /dev/null +++ b/.changesets/feat_add_lifecycle_support_to_helm_chart.md @@ -0,0 +1,5 @@ +### Helm: exposes the lifecycle object on the router container ([Issue #3563](https://github.com/apollographql/router/issues/3563)) + +You can now set the kubernetes lifecycle object on the router container in the helm chart. + +By [@bjoernw](https://github.com/bjoernw) in https://github.com/apollographql/router/pull/3570 diff --git a/helm/chart/router/templates/deployment.yaml b/helm/chart/router/templates/deployment.yaml index 36587ea17a..2e5962a509 100644 --- a/helm/chart/router/templates/deployment.yaml +++ b/helm/chart/router/templates/deployment.yaml @@ -102,7 +102,8 @@ spec: containerPort: {{ .Values.containerPorts.metrics }} protocol: TCP {{- end }} - + lifecycle: + {{- toYaml .Values.lifecycle | nindent 12 }} livenessProbe: httpGet: path: "/health?live" diff --git a/helm/chart/router/values.yaml b/helm/chart/router/values.yaml index 6c8d6cd75b..f682a3f933 100644 --- a/helm/chart/router/values.yaml +++ b/helm/chart/router/values.yaml @@ -101,6 +101,14 @@ initContainers: [] # label_two_name: "label_two_value" extraLabels: {} +lifecycle: {} +# preStop: +# exec: +# command: +# - /bin/bash +# - -c +# - sleep 10 + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""