diff --git a/README.md b/README.md index a9d9c49..fb08c16 100644 --- a/README.md +++ b/README.md @@ -460,6 +460,7 @@ Chart configuration is as follows: | `service.port` | `587` | SMTP submission port | | `service.labels` | `{}` | Additional service labels | | `service.annotations` | `{}` | Additional service annotations | +| `service.spec` | `{}` | Additional service specifications | | `service.nodePort` | *empty* | Use a specific `nodePort` | | `service.nodeIP` | *empty* | Use a specific `nodeIP` | | `resources` | `{}` | [Pod resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | diff --git a/helm/mail/templates/service.yaml b/helm/mail/templates/service.yaml index 6e40391..9356408 100644 --- a/helm/mail/templates/service.yaml +++ b/helm/mail/templates/service.yaml @@ -13,6 +13,7 @@ metadata: {{- with .Values.service.annotations }}{{ toYaml . | nindent 4 }}{{ end }} spec: type: {{ .Values.service.type }} + {{- with .Values.service.spec }}{{ toYaml . | nindent 2 }}{{ end }} ports: - port: {{ .Values.service.port }} targetPort: smtp diff --git a/helm/test_6_service_spec.yml b/helm/test_6_service_spec.yml new file mode 100644 index 0000000..9708e34 --- /dev/null +++ b/helm/test_6_service_spec.yml @@ -0,0 +1,6 @@ +# copy over all values from the service.spc +service: + type: LoadBalancer + spec: + loadBalancerIP: 10.10.100.100 + externalTrafficPolicy: Local