2021-08-16 12:42:21 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.cmd: kompose convert
|
|
|
|
kompose.version: 1.21.0 (992df58d8)
|
2023-02-15 17:28:20 +01:00
|
|
|
{{ if .Values.services.proxy.deploymentAnnotations }}
|
|
|
|
{{- toYaml .Values.services.proxy.deploymentAnnotations | indent 4 -}}
|
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: budibase-proxy
|
2023-02-15 17:28:20 +01:00
|
|
|
{{ if .Values.services.proxy.deploymentLabels }}
|
|
|
|
{{- toYaml .Values.services.proxy.deploymentLabels | indent 4 -}}
|
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
name: proxy-service
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.services.proxy.replicaCount }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: budibase-proxy
|
|
|
|
strategy:
|
2021-10-12 22:58:10 +02:00
|
|
|
type: RollingUpdate
|
2021-08-16 12:42:21 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.cmd: kompose convert
|
|
|
|
kompose.version: 1.21.0 (992df58d8)
|
2023-02-15 17:28:20 +01:00
|
|
|
{{ if .Values.services.proxy.templateAnnotations }}
|
|
|
|
{{- toYaml .Values.services.proxy.templateAnnotations | indent 8 -}}
|
2023-01-06 10:50:16 +01:00
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: budibase-proxy
|
2023-02-15 17:28:20 +01:00
|
|
|
{{ if .Values.services.proxy.templateLabels }}
|
|
|
|
{{- toYaml .Values.services.proxy.templateLabels | indent 8 -}}
|
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
spec:
|
|
|
|
containers:
|
2023-04-12 23:19:54 +02:00
|
|
|
- image: budibase/proxy:{{ .Values.globals.appVersion | default .Chart.AppVersion }}
|
2021-10-12 22:58:10 +02:00
|
|
|
imagePullPolicy: Always
|
2021-08-16 12:42:21 +02:00
|
|
|
name: proxy-service
|
2023-08-01 10:01:04 +02:00
|
|
|
{{- if .Values.services.proxy.startupProbe }}
|
|
|
|
{{- with .Values.services.proxy.startupProbe }}
|
|
|
|
startupProbe:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.services.proxy.livenessProbe }}
|
|
|
|
{{- with .Values.services.proxy.livenessProbe }}
|
2023-07-21 14:58:06 +02:00
|
|
|
livenessProbe:
|
2023-08-01 10:01:04 +02:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.services.proxy.readinessProbe }}
|
|
|
|
{{- with .Values.services.proxy.readinessProbe }}
|
2023-07-21 14:58:06 +02:00
|
|
|
readinessProbe:
|
2023-08-01 10:01:04 +02:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: {{ .Values.services.proxy.port }}
|
2022-12-20 17:28:13 +01:00
|
|
|
env:
|
|
|
|
- name: APPS_UPSTREAM_URL
|
|
|
|
value: {{ tpl .Values.services.proxy.upstreams.apps . | quote }}
|
|
|
|
- name: WORKER_UPSTREAM_URL
|
|
|
|
value: {{ tpl .Values.services.proxy.upstreams.worker . | quote }}
|
|
|
|
- name: MINIO_UPSTREAM_URL
|
|
|
|
value: {{ tpl .Values.services.proxy.upstreams.minio . | quote }}
|
|
|
|
- name: COUCHDB_UPSTREAM_URL
|
|
|
|
value: {{ .Values.services.couchdb.url | default (tpl .Values.services.proxy.upstreams.couchdb .) | quote }}
|
2023-03-01 19:33:37 +01:00
|
|
|
{{ if .Values.services.proxy.proxyRateLimitWebhooksPerSecond }}
|
|
|
|
- name: PROXY_RATE_LIMIT_WEBHOOKS_PER_SECOND
|
|
|
|
value: {{ .Values.services.proxy.proxyRateLimitWebhooksPerSecond | quote }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Values.services.proxy.proxyRateLimitApiPerSecond }}
|
|
|
|
- name: PROXY_RATE_LIMIT_API_PER_SECOND
|
|
|
|
value: {{ .Values.services.proxy.proxyRateLimitApiPerSecond | quote }}
|
|
|
|
{{ end }}
|
2022-12-20 17:28:13 +01:00
|
|
|
- name: RESOLVER
|
|
|
|
{{ if .Values.services.proxy.resolver }}
|
|
|
|
value: {{ .Values.services.proxy.resolver }}
|
|
|
|
{{ else }}
|
|
|
|
value: kube-dns.kube-system.svc.{{ .Values.services.dns }}
|
|
|
|
{{ end }}
|
2022-02-23 16:26:09 +01:00
|
|
|
{{ with .Values.services.proxy.resources }}
|
|
|
|
resources:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
volumeMounts:
|
2022-04-14 17:22:22 +02:00
|
|
|
{{- with .Values.affinity }}
|
|
|
|
affinity:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.tolerations }}
|
|
|
|
tolerations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-03-15 17:02:32 +01:00
|
|
|
{{ if .Values.schedulerName }}
|
|
|
|
schedulerName: {{ .Values.schedulerName | quote }}
|
|
|
|
{{ end }}
|
2022-07-07 16:39:15 +02:00
|
|
|
{{ if .Values.imagePullSecrets }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml .Values.imagePullSecrets | nindent 6 }}
|
|
|
|
{{ end }}
|
2021-08-16 12:42:21 +02:00
|
|
|
restartPolicy: Always
|
|
|
|
serviceAccountName: ""
|
|
|
|
volumes:
|
|
|
|
status: {}
|