4 name: {{ template "kong.fullname" . }}
6 {{- include "kong.metaLabels" . | nindent 4 }}
7 app.kubernetes.io/component: app
9 replicas: {{ .Values.replicaCount }}
12 {{- include "kong.selectorLabels" . | nindent 6 }}
13 {{- if .Values.updateStrategy }}
15 {{ toYaml .Values.updateStrategy | indent 4 }}
21 {{- if .Values.ingressController.admissionWebhook.enabled }}
22 checksum/admission-webhook.yaml: {{ include (print $.Template.BasePath "/admission-webhook.yaml") . | sha256sum }}
24 {{- if (and (not .Values.ingressController.enabled) (eq .Values.env.database "off" )) }}
25 {{- if .Values.dblessConfig.config }}
26 checksum/dbless.config: {{ toYaml .Values.dblessConfig.config | sha256sum }}
29 {{- if .Values.podAnnotations }}
30 {{ toYaml .Values.podAnnotations | indent 8 }}
33 {{- include "kong.metaLabels" . | nindent 8 }}
34 app.kubernetes.io/component: app
36 {{- if or .Values.ingressController.enabled .Values.podSecurityPolicy.enabled }}
37 serviceAccountName: {{ template "kong.serviceAccountName" . }}
39 {{- if .Values.image.pullSecrets }}
41 {{- range .Values.image.pullSecrets }}
45 {{- if not (eq .Values.env.database "off") }}
47 {{- include "kong.wait-for-db" . | nindent 6 }}
50 {{- if .Values.ingressController.enabled }}
51 {{- include "kong.controller-container" . | nindent 6 }}
54 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
55 imagePullPolicy: {{ .Values.image.pullPolicy }}
57 {{- include "kong.final_env" . | nindent 8 }}
61 command: [ "/bin/sh", "-c", "kong quit" ]
64 containerPort: {{ .Values.admin.containerPort }}
65 {{- if .Values.admin.hostPort }}
66 hostPort: {{ .Values.admin.hostPort }}
69 {{- if .Values.proxy.http.enabled }}
71 containerPort: {{ .Values.proxy.http.containerPort }}
72 {{- if .Values.proxy.http.hostPort }}
73 hostPort: {{ .Values.proxy.http.hostPort }}
77 {{- if .Values.proxy.tls.enabled }}
79 containerPort: {{ .Values.proxy.tls.containerPort }}
80 {{- if .Values.proxy.tls.hostPort }}
81 hostPort: {{ .Values.proxy.tls.hostPort }}
88 {{- if .Values.ingressController.admissionWebhook.enabled }}
90 containerPort: {{ .Values.ingressController.admissionWebhook.port }}
93 {{- if .Values.enterprise.enabled }}
94 {{- if .Values.manager.http.enabled }}
96 containerPort: {{ .Values.manager.http.containerPort }}
97 {{- if .Values.manager.http.hostPort }}
98 hostPort: {{ .Values.manager.http.hostPort }}
102 {{- if .Values.manager.tls.enabled }}
104 containerPort: {{ .Values.manager.tls.containerPort }}
105 {{- if .Values.manager.tls.hostPort }}
106 hostPort: {{ .Values.manager.tls.hostPort }}
110 {{- if .Values.portal.http.enabled }}
112 containerPort: {{ .Values.portal.http.containerPort }}
113 {{- if .Values.portal.http.hostPort }}
114 hostPort: {{ .Values.portal.http.hostPort }}
118 {{- if .Values.portal.tls.enabled }}
120 containerPort: {{ .Values.portal.tls.containerPort }}
121 {{- if .Values.portal.tls.hostPort }}
122 hostPort: {{ .Values.portal.tls.hostPort }}
126 {{- if .Values.portalapi.http.enabled }}
128 containerPort: {{ .Values.portalapi.http.containerPort }}
129 {{- if .Values.portalapi.http.hostPort }}
130 hostPort: {{ .Values.portalapi.http.hostPort }}
134 {{- if .Values.portalapi.tls.enabled }}
135 - name: portalapi-tls
136 containerPort: {{ .Values.portalapi.tls.containerPort }}
137 {{- if .Values.portalapi.tls.hostPort }}
138 hostPort: {{ .Values.portalapi.tls.hostPort }}
144 {{- include "kong.volumeMounts" . | nindent 10 }}
146 {{ toYaml .Values.readinessProbe | indent 10 }}
148 {{ toYaml .Values.livenessProbe | indent 10 }}
150 {{ toYaml .Values.resources | indent 10 }}
151 {{- if .Values.affinity }}
153 {{ toYaml .Values.affinity | indent 8 }}
156 {{- include "kong.podsecuritycontext" . | nindent 8 }}
157 {{- if .Values.nodeSelector }}
159 {{ toYaml .Values.nodeSelector | indent 8 }}
162 {{ toYaml .Values.tolerations | indent 8 }}
164 {{- include "kong.volumes" . | nindent 8 -}}