diff --git a/deploy/charts/konnector/templates/deployment.yaml b/deploy/charts/konnector/templates/deployment.yaml index 7efc03147..49547a7a9 100644 --- a/deploy/charts/konnector/templates/deployment.yaml +++ b/deploy/charts/konnector/templates/deployment.yaml @@ -27,6 +27,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: diff --git a/deploy/charts/konnector/values.yaml b/deploy/charts/konnector/values.yaml index 4ac61a70d..5151dfa6e 100644 --- a/deploy/charts/konnector/values.yaml +++ b/deploy/charts/konnector/values.yaml @@ -53,6 +53,14 @@ resources: cpu: 500m memory: 256Mi +# Host aliases injected into /etc/hosts. +# Needed when circumventing local DNS (e.g. local setup). +hostAliases: [] +# Example: +# - ip: "1.2.3.4" +# hostnames: +# - kcp.api.portal.localhost + podAnnotations: {} podLabels: {}