mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-11-12 02:31:08 +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.port` | `587` | SMTP submission port |
|
||||||
| `service.labels` | `{}` | Additional service labels |
|
| `service.labels` | `{}` | Additional service labels |
|
||||||
| `service.annotations` | `{}` | Additional service annotations |
|
| `service.annotations` | `{}` | Additional service annotations |
|
||||||
|
| `service.nodePort` | *empty* | Use a specific `nodePort` |
|
||||||
| `resources` | `{}` | [Pod resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
|
| `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.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 |
|
| `autoscaling.minReplicas` | `1` | Minimum number of replicas |
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,6 @@ spec:
|
||||||
targetPort: smtp
|
targetPort: smtp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: smtp
|
name: smtp
|
||||||
|
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }}
|
||||||
selector:
|
selector:
|
||||||
{{- $selectorLabels | nindent 4 }}
|
{{- $selectorLabels | nindent 4 }}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ service:
|
||||||
port: 587
|
port: 587
|
||||||
labels: {}
|
labels: {}
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# nodePort:
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue