diff --git a/templates/core/core-dpl.yaml b/templates/core/core-dpl.yaml index e52e5f775..1ed3af77b 100644 --- a/templates/core/core-dpl.yaml +++ b/templates/core/core-dpl.yaml @@ -85,6 +85,10 @@ spec: port: {{ template "harbor.core.containerPort" . }} failureThreshold: 2 periodSeconds: 10 +{{- with .Values.core.lifecycle }} + lifecycle: +{{ toYaml . | indent 10 }} +{{- end }} envFrom: - configMapRef: name: "{{ template "harbor.core" . }}" diff --git a/values.yaml b/values.yaml index 7e7490650..ab57b9cbc 100644 --- a/values.yaml +++ b/values.yaml @@ -565,6 +565,7 @@ core: extraEnvVars: [] nodeSelector: {} tolerations: [] + lifecycle: [] affinity: {} # Spread Pods across failure-domains like regions, availability zones or nodes topologySpreadConstraints: []