Skip to content

feat(helm): Support dnsConfig in deployment #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/kafka-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ spec:
serviceAccountName: {{ include "kafka-ui.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
17 changes: 17 additions & 0 deletions charts/kafka-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@ volumes: {}
##
hostAliases: {}

## @section DNS Configuration for Pods
## @param dnsConfig Specifies the DNS parameters of a pod
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-container/#pod-dns-config
dnsConfig: {}
## @param dnsConfig.nameservers [list] A list of IP addresses that will be used as DNS servers for the Pod.
# nameservers:
# - 1.2.3.4
## @param dnsConfig.searches [list] A list of DNS search domains for hostname lookup in the Pod.
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
## @param dnsConfig.options [list] A list of objects where each object may have a `name` property (required) and a `value` property (optional). Options are used to configure the behavior of the DNS resolver.
# options:
# - name: ndots
# value: "2"
# - name: edns0

## @param extraContainers Specify additional containers in extraContainers.
## For example, to add an authentication proxy to a kafka-ui pod.
extraContainers: |
Expand Down