Add option to use a specific nodePort (#70)

* Add option to use a specific nodePort

* Update README on option to specify a nodePort
This commit is contained in:
jaazmyn 2021-05-29 17:09:21 +02:00 committed by GitHub
parent 0c12027622
commit 069195a125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -459,6 +459,7 @@ Chart configuration is as follows:
| `service.port` | `587` | SMTP submission port |
| `service.labels` | `{}` | Additional service labels |
| `service.annotations` | `{}` | Additional service annotations |
| `service.nodePort` | *empty* | Use a specific `nodePort` |
| `resources` | `{}` | [Pod resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| `autoscaling.enabled` | `false` | Set to `true` to enable [Horisontal Pod Autoscaler](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) |
| `autoscaling.minReplicas` | `1` | Minimum number of replicas |

View file

@ -18,5 +18,6 @@ spec:
targetPort: smtp
protocol: TCP
name: smtp
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }}
selector:
{{- $selectorLabels | nindent 4 }}

View file

@ -19,6 +19,7 @@ service:
port: 587
labels: {}
annotations: {}
# nodePort:
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious