Skip to content

Commit

Permalink
config: expose node-local-dns resources
Browse files Browse the repository at this point in the history
  • Loading branch information
davidumea authored and crssnd committed Feb 21, 2024
1 parent 00e5c42 commit 07c0bca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/0.36.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Released 2024-01-30
- [#1953](https://github.com/elastisys/compliantkubernetes-apps/pull/1953) - Diff charts recursively when diffing 'all' @simonklb
- [#1961](https://github.com/elastisys/compliantkubernetes-apps/pull/1961) - Use objectStorage.s3.forcePathStyle in Velero values @simonklb
- [#1975](https://github.com/elastisys/compliantkubernetes-apps/pull/1975) - Add context to update-ips port parsing error @simonklb
- [#2003](https://github.com/elastisys/compliantkubernetes-apps/pull/2003) - config: expose node-local-dns resources @davidumea

### Other(s)

Expand Down
7 changes: 7 additions & 0 deletions config/config/common-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1012,3 +1012,10 @@ nodeLocalDns:
# loop
# forward . 127.0.0.1:9005
# }
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 25m
memory: 40Mi
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ spec:
containers:
- name: node-cache
image: registry.k8s.io/dns/k8s-dns-node-cache:1.22.20
resources:
{{- toYaml .Values.resources | nindent 12 }}
resources: {{- toYaml .Values.resources | nindent 10 }}
args: [ "-localip", "{{ .Values.localIP }},{{ .Values.clusterDNS }}", "-conf", "/etc/Corefile", "-upstreamsvc", "kube-dns-upstream"]
securityContext:
privileged: true
Expand Down
2 changes: 2 additions & 0 deletions helmfile.d/values/node-local-dns.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ errorConfig: |-
{{- if dig "nodeLocalDns" "customConfig" false .Values }}
customConfig: {{ toYaml .Values.nodeLocalDns.customConfig }}
{{- end }}

resources: {{- toYaml .Values.nodeLocalDns.resources | nindent 2 }}

0 comments on commit 07c0bca

Please sign in to comment.