diff --git a/charts/woodpecker-agent/templates/deployment.yaml b/charts/woodpecker-agent/templates/deployment.yaml index 14812cf7a..d3a8a4f8e 100644 --- a/charts/woodpecker-agent/templates/deployment.yaml +++ b/charts/woodpecker-agent/templates/deployment.yaml @@ -91,3 +91,8 @@ spec: - name: sock-dir emptyDir: {} {{- end }} + {{- with .Values.dnsConfig }} + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} + diff --git a/charts/woodpecker-agent/values.yaml b/charts/woodpecker-agent/values.yaml index 433a8f84a..28f15a65b 100644 --- a/charts/woodpecker-agent/values.yaml +++ b/charts/woodpecker-agent/values.yaml @@ -86,6 +86,8 @@ tolerations: [] affinity: {} +dnsConfig: {} + ## Using topology spread constraints, you can ensure that there is at least one agent ## pod for each topology zone, e.g. one per arch for multi-architecture clusters ## or one for each region for geographically distributed cloud-hosted clusters. diff --git a/charts/woodpecker-server/templates/deployment.yaml b/charts/woodpecker-server/templates/deployment.yaml index a3365b346..5da05a7aa 100644 --- a/charts/woodpecker-server/templates/deployment.yaml +++ b/charts/woodpecker-server/templates/deployment.yaml @@ -79,3 +79,8 @@ spec: persistentVolumeClaim: claimName: {{ if .Values.persistentVolume.existingClaim }}{{ .Values.persistentVolume.existingClaim }}{{- else }}{{ template "woodpecker-server.fullname" . }}{{- end }} {{- end -}} + {{- with .Values.dnsConfig }} + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} + diff --git a/charts/woodpecker-server/values.yaml b/charts/woodpecker-server/values.yaml index f8c560f28..4bdfb939f 100644 --- a/charts/woodpecker-server/values.yaml +++ b/charts/woodpecker-server/values.yaml @@ -97,3 +97,6 @@ nodeSelector: {} tolerations: [] affinity: {} + +dnsConfig: {} +