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

Commit

Permalink
Pod DNS settings (#2116)
Browse files Browse the repository at this point in the history
Pod DNS settings
  • Loading branch information
hiddeco authored Jun 3, 2019
2 parents 540ebc8 + 9cac553 commit b87e18e
Show file tree
Hide file tree
Showing 4 changed files with 27 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
8 changes: 8 additions & 0 deletions deploy/flux-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,11 @@ spec:
# Serve /metrics endpoint at different port;
# make sure to set prometheus' annotation to scrape the port value.
- --listen-metrics=:3031

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

0 comments on commit b87e18e

Please sign in to comment.