Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Incorporate pod DNS settings into chart
Browse files Browse the repository at this point in the history
Mainly to provide people with the tools to overcome nslookup issues on
certain Kubernetes setups, as one solution seems to be to configure the
ndots value to "1".

Ref: #2051 (comment)
  • Loading branch information
hiddeco committed May 31, 2019
1 parent e81b697 commit 2b53dae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/flux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ The following tables lists the configurable parameters of the Weave Flux chart a
| `nodeSelector` | `{}` | Node Selector properties for the Flux deployment
| `tolerations` | `[]` | Tolerations properties for the Flux deployment
| `affinity` | `{}` | Affinity properties for the Flux deployment
| `extraVolumeMounts` | `[]` | Extra volumes mounts
| `extraVolumes` | `[]` | Extra volumes
| `dnsPolicy` | `` | Pod DNS policy
| `dnsConfig` | `` | Pod DNS config
| `token` | `None` | Weave Cloud service token
| `extraEnvs` | `[]` | Extra environment variables for the Flux pod(s)
| `rbac.create` | `true` | If `true`, create and use RBAC resources
Expand Down
7 changes: 7 additions & 0 deletions chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ spec:
{{ toYaml .Values.additionalArgs | indent 10 }}
{{- end }}
resources:
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{ toYaml .Values.dnsConfig | indent 8 }}
{{- end }}
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
8 changes: 8 additions & 0 deletions chart/flux/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ extraVolumeMounts: []

extraVolumes: []

# Optional DNS settings, configuring the ndots option may resolve
# nslookup issues on some Kubernetes setups.
#dnsPolicy: "None"
#dnsConfig:
# options:
# - name: ndots
# value: "1"

gpgKeys:
# These keys will be imported into GPG in the Flux container.
secretName: ""
Expand Down

0 comments on commit 2b53dae

Please sign in to comment.