Merge pull request #1147 from kremers/nginx/feature/annotations

[bitnami/nginx] Allow annotations for the service to utilize i.e. external-dns
This commit is contained in:
Juan Ariza Toledano
2019-05-03 09:34:43 +02:00
committed by GitHub
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ The following tables lists the configurable parameters of the NGINX Open Source
| `service.nodePorts.http` | Kubernetes http node port | `""` |
| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
| `service.loadBalancerIP` | LoadBalancer service IP address | `""` |
| `service.annotations` | Service annotations | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+4
View File
@@ -7,6 +7,10 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.service.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }}
+5 -1
View File
@@ -31,7 +31,11 @@ image:
##
service:
type: LoadBalancer
# HTTP Port
## Provide optional annotations to the service i.e. for external-dns
# annotations:
# external-dns.alpha.kubernetes.io/hostname: yourservicename.k8s.yourcompany.com
##
## HTTP Port
port: 80
##
## loadBalancerIP: