Skip to content

Commit

Permalink
Merge pull request #342 from ReidThompson/feat/additional-ports
Browse files Browse the repository at this point in the history
feat: support adding additional ports to workers
  • Loading branch information
Rui Yang authored Oct 31, 2023
2 parents e063f41 + bca02dc commit d27fc91
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ The following table lists the configurable parameters of the Concourse chart and
| `web.vaultSecretsPath` | Specify the mount directory of the web vault secrets | `/concourse-vault` |
| `worker.additionalAffinities` | Additional affinities to apply to worker pods. E.g: node affinity | `{}` |
| `worker.additionalVolumeMounts` | VolumeMounts to be added to the worker pods | `nil` |
| `worker.additionalPorts` | Additional ports to be added to worker pods | `[]` |
| `worker.additionalVolumes` | Volumes to be added to the worker pods | `nil` |
| `worker.annotations` | Annotations to be added to the worker pods | `{}` |
| `worker.autoscaling` | Enable and configure pod autoscaling | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ spec:
ports:
- name: worker-hc
containerPort: {{ .Values.concourse.worker.healthcheckBindPort }}
{{- if .Values.worker.additionalPorts }}
{{ toYaml .Values.worker.additionalPorts | indent 12 }}
{{- end }}
{{- if .Values.worker.resources }}
resources:
{{ toYaml .Values.worker.resources | indent 12 }}
Expand Down
3 changes: 3 additions & 0 deletions templates/worker-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ spec:
ports:
- name: worker-hc
containerPort: {{ .Values.concourse.worker.healthcheckBindPort }}
{{- if .Values.worker.additionalPorts }}
{{ toYaml .Values.worker.additionalPorts | indent 12 }}
{{- end }}
{{- if .Values.worker.resources }}
resources:
{{ toYaml .Values.worker.resources | indent 12 }}
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,16 @@ worker:
## mountPath: /baggageclaim
##
additionalVolumeMounts: []

## Additional ports to be added to worker pods
## Example:
## - containerPort: 7788
## name: worker-bc
## protocol: TCP
##
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/
##
additionalPorts: []

## Additional Annotations to be added to the web deployment
## Per Kubernetes spec, the values of each annotation must be a string.
Expand Down

0 comments on commit d27fc91

Please sign in to comment.