mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-21 02:56:50 +10:00
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:
@@ -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,
|
||||
|
||||
|
||||
@@ -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")) }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user