Skip to content

Commit 135e662

Browse files
authored
Merge pull request #8103 from sslavic/stevo-dns-config
feat(chart): support configuring dnsConfig
2 parents 14f7925 + ad1866c commit 135e662

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.48.0
14+
version: 9.49.0

charts/cluster-autoscaler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ vpa:
463463
| containerSecurityContext | object | `{}` | [Security context for container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
464464
| customArgs | list | `[]` | Additional custom container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. List of arguments as strings. |
465465
| deployment.annotations | object | `{}` | Annotations to add to the Deployment object. |
466+
| dnsConfig | object | `{}` | [Pod's DNS Config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config) |
466467
| dnsPolicy | string | `"ClusterFirst"` | Defaults to `ClusterFirst`. Valid values are: `ClusterFirstWithHostNet`, `ClusterFirst`, `Default` or `None`. If autoscaler does not depend on cluster DNS, recommended to set this to `Default`. |
467468
| envFromConfigMap | string | `""` | ConfigMap name to use as envFrom. |
468469
| envFromSecret | string | `""` | Secret name to use as envFrom. |

charts/cluster-autoscaler/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ spec:
4040
{{- if .Values.priorityClassName }}
4141
priorityClassName: "{{ .Values.priorityClassName }}"
4242
{{- end }}
43+
{{- with .Values.dnsConfig }}
44+
dnsConfig:
45+
{{- toYaml . | nindent 8 }}
46+
{{- end }}
4347
{{- if .Values.dnsPolicy }}
4448
dnsPolicy: "{{ .Values.dnsPolicy }}"
4549
{{- end }}

charts/cluster-autoscaler/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@ deployment:
170170
# deployment.annotations -- Annotations to add to the Deployment object.
171171
annotations: {}
172172

173+
# dnsConfig -- [Pod's DNS Config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config)
174+
dnsConfig: {}
175+
# nameservers:
176+
# - 1.2.3.4
177+
# searches:
178+
# - ns1.svc.cluster-domain.example
179+
# - my.dns.search.suffix
180+
# options:
181+
# - name: ndots
182+
# value: "2"
183+
# - name: edns0
184+
173185
# dnsPolicy -- Defaults to `ClusterFirst`. Valid values are:
174186
# `ClusterFirstWithHostNet`, `ClusterFirst`, `Default` or `None`.
175187
# If autoscaler does not depend on cluster DNS, recommended to set this to `Default`.

0 commit comments

Comments
 (0)