diff --git a/charts/actions-runner-controller/README.md b/charts/actions-runner-controller/README.md index 77bbe38b..ca1e2fc4 100644 --- a/charts/actions-runner-controller/README.md +++ b/charts/actions-runner-controller/README.md @@ -33,6 +33,7 @@ All additional docs are kept in the `docs/` folder, this README is solely for do | `authSecret.github_basicauth_username` | Username for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API | | | `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 | | `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 8885a6a5..234d36a7 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -199,3 +199,6 @@ spec: topologySpreadConstraints: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.hostNetwork }} + hostNetwork: {{ .Values.hostNetwork }} + {{- end }} diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index ebbba393..08d72d3f 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -165,6 +165,10 @@ admissionWebHooks: {} #caBundle: "Ci0tLS0tQk......tLS0K" +# There may be alternatives to setting `hostNetwork: true`, see +# https://github.com/actions-runner-controller/actions-runner-controller/issues/1005#issuecomment-993097155 +#hostNetwork: true + githubWebhookServer: enabled: false replicaCount: 1