Skip to content

Commit

Permalink
stable/node-local-dns Extend daemonset arg list (#503)
Browse files Browse the repository at this point in the history
* extend daemonset arg list

* set boolean default values

* change structure

---------

Co-authored-by: Max Williams <8859277+max-rocket-internet@users.noreply.github.com>
  • Loading branch information
kkonnov and max-rocket-internet committed Aug 11, 2023
1 parent 6ac447a commit 57cf1b0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/node-local-dns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: node-local-dns
version: 1.1.3
version: 1.1.4
appVersion: 1.22.20
maintainers:
- name: gabrieladt
Expand Down
5 changes: 4 additions & 1 deletion stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-local-dns

![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square) ![AppVersion: 1.22.20](https://img.shields.io/badge/AppVersion-1.22.20-informational?style=flat-square)
![Version: 1.1.4](https://img.shields.io/badge/Version-1.1.4-informational?style=flat-square) ![AppVersion: 1.22.20](https://img.shields.io/badge/AppVersion-1.22.20-informational?style=flat-square)

A chart to install node-local-dns.

Expand Down Expand Up @@ -54,6 +54,9 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| config.dnsServer | string | `"172.20.0.10"` | |
| config.healthPort | int | `8080` | |
| config.localDns | string | `"169.254.20.25"` | |
| config.setupInterface | bool | `false` | |
| config.setupIptables | bool | `false` | |
| config.skipTeardown | bool | `true` | |
| dashboard.annotations | object | `{}` | |
| dashboard.enabled | bool | `false` | |
| dashboard.label | string | `"grafana_dashboard"` | |
Expand Down
11 changes: 10 additions & 1 deletion stable/node-local-dns/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ spec:
{{- with .Values.resources }}
resources: {{- toYaml . | nindent 10 }}
{{- end }}
args: [ "-localip", "{{ .Values.config.localDns }},{{ .Values.config.dnsServer }}", "-conf", "/etc/Corefile", "-upstreamsvc", "{{ include "node-local-dns.fullname" . }}-upstream" ]
args:
- "-localip"
- "{{ .Values.config.localDns }},{{ .Values.config.dnsServer }}"
- "-conf"
- "/etc/Corefile"
- "-upstreamsvc"
- "{{ include "node-local-dns.fullname" . }}-upstream"
- "-skipteardown={{ .Values.config.skipTeardown }}"
- "-setupinterface={{ .Values.config.setupInterface }}"
- "-setupiptables={{ .Values.config.setupIptables }}"
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
ports:
Expand Down
6 changes: 6 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ config:
# Port used for the health endpoint
healthPort: 8080

setupInterface: false

setupIptables: false

skipTeardown: true

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit 57cf1b0

Please sign in to comment.