4 name: {{ template "kong.fullname" . }}-proxy
6 {{- range $key, $value := .Values.proxy.annotations }}
7 {{ $key }}: {{ $value | quote }}
10 app: {{ template "kong.name" . }}
11 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
12 release: "{{ .Release.Name }}"
13 heritage: "{{ .Release.Service }}"
15 type: {{ .Values.proxy.type }}
16 {{- if eq .Values.proxy.type "LoadBalancer" }}
17 {{- if .Values.proxy.loadBalancerIP }}
18 loadBalancerIP: {{ .Values.proxy.loadBalancerIP }}
20 {{- if .Values.proxy.loadBalancerSourceRanges }}
21 loadBalancerSourceRanges:
22 {{- range $cidr := .Values.proxy.loadBalancerSourceRanges }}
28 {{- range $ip := .Values.proxy.externalIPs }}
32 {{- if .Values.proxy.http.enabled }}
34 port: {{ .Values.proxy.http.servicePort }}
35 targetPort: {{ .Values.proxy.http.containerPort }}
36 {{- if (and (eq .Values.proxy.type "NodePort") (not (empty .Values.proxy.http.nodePort))) }}
37 nodePort: {{ .Values.proxy.http.nodePort }}
41 {{- if or .Values.proxy.tls.enabled }}
42 - name: kong-proxy-tls
43 port: {{ .Values.proxy.tls.servicePort }}
44 targetPort: {{ .Values.proxy.tls.containerPort }}
45 {{- if (and (eq .Values.proxy.type "NodePort") (not (empty .Values.proxy.tls.nodePort))) }}
46 nodePort: {{ .Values.proxy.tls.nodePort }}
50 {{- if .Values.proxy.externalTrafficPolicy }}
51 externalTrafficPolicy: {{ .Values.proxy.externalTrafficPolicy }}
55 app: {{ template "kong.name" . }}
56 release: {{ .Release.Name }}