Skip to content

Commit 4c8da4c

Browse files
committed
agent: accomodate dns policy config
1 parent 4f92a9e commit 4c8da4c

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

charts/agent/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: cloud-agent
33
description: A Helm chart for Ametnes Platform Agent
44
type: application
5-
version: 0.3.16
6-
appVersion: 0.3.5083
5+
version: 0.3.17
6+
appVersion: 0.3.5132
77
dependencies:
88
- name: memcached
99
version: 6.3.4

charts/agent/templates/agent-deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ spec:
7676
{{- end }}
7777
securityContext:
7878
{{- toYaml .podSecurityContext | nindent 8 }}
79+
{{- if .dnsPolicy }}
80+
dnsPolicy: {{ .dnsPolicy }}
81+
{{- end }}
82+
{{- if .dnsConfig }}
83+
dnsConfig:
84+
{{- toYaml .dnsConfig | nindent 8 }}
85+
{{- end }}
7986
initContainers:
8087
- name: wait-for-memcached
8188
image: busybox:1.35

charts/agent/values.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ agent:
1313
image:
1414
repository: ametnes/cloud-agent
1515
pullPolicy: IfNotPresent
16-
tag: "0.3.5083"
16+
tag: "0.3.5132"
1717

1818
# imagePullSecrets:
1919
# - name: pull-secret
@@ -22,6 +22,22 @@ agent:
2222
extraInitContainers: []
2323
extraVolumes: []
2424
extraVolumeMounts: []
25+
# DNS policy and configuration for the agent pod.
26+
# Set dnsPolicy to "None" with custom nameservers when the cluster DNS cannot resolve
27+
# external domains (common in private/air-gapped k3s environments).
28+
# dnsPolicy: "None"
29+
# dnsConfig:
30+
# nameservers:
31+
# - 8.8.8.8
32+
# - 8.8.4.4
33+
# options:
34+
# - name: ndots
35+
# value: "2"
36+
# searches:
37+
# - svc.cluster.local
38+
# - cluster.local
39+
dnsPolicy: ""
40+
dnsConfig: {}
2541
tls:
2642
trust:
2743
enabled: false

0 commit comments

Comments
 (0)