mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-11-08 16:50:44 +08:00
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:
parent
0c12027622
commit
069195a125
3 changed files with 3 additions and 0 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue