Skip to content

Commit

Permalink
Add option to use a specific nodePort (bokysan#70)
Browse files Browse the repository at this point in the history
* Add option to use a specific nodePort

* Update README on option to specify a nodePort
  • Loading branch information
jaazmyn authored May 29, 2021
1 parent 0c12027 commit 069195a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions helm/mail/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions helm/mail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 069195a

Please sign in to comment.