diff --git a/charts/actions-runner-controller/README.md b/charts/actions-runner-controller/README.md index d291bb6f..2ed82f96 100644 --- a/charts/actions-runner-controller/README.md +++ b/charts/actions-runner-controller/README.md @@ -35,6 +35,7 @@ All additional docs are kept in the `docs/` folder, this README is solely for do | `authSecret.github_basicauth_password` | Password for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API | | | `dockerRegistryMirror` | The default Docker Registry Mirror used by runners. | | | `hostNetwork` | The "hostNetwork" of the controller container | false | +| `dnsPolicy` | The "dnsPolicy" of the controller container | ClusterFirst | | `image.repository` | The "repository/image" of the controller container | summerwind/actions-runner-controller | | `image.tag` | The tag of the controller container | | | `image.actionsRunnerRepositoryAndTag` | The "repository/image" of the actions runner container | summerwind/actions-runner:latest | diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 845da835..3490f989 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -214,3 +214,6 @@ spec: {{- if .Values.hostNetwork }} hostNetwork: {{ .Values.hostNetwork }} {{- end }} + {{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy }} + {{- end }} diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index 97d0eb74..92cb3dce 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -189,6 +189,10 @@ admissionWebHooks: # https://github.com/actions/actions-runner-controller/issues/1005#issuecomment-993097155 #hostNetwork: true +# If you use `hostNetwork: true`, then you need dnsPolicy: ClusterFirstWithHostNet +# https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy +#dnsPolicy: ClusterFirst + ## specify log format for actions runner controller. Valid options are "text" and "json" logFormat: text