1
0
Fork 0
mirror of synced 2024-05-14 17:32:28 +12:00
budibase/charts/budibase/templates/app-service-deployment.yaml

192 lines
6.9 KiB
YAML
Raw Normal View History

2021-08-16 22:42:21 +12:00
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.21.0 (992df58d8)
creationTimestamp: null
labels:
io.kompose.service: app-service
name: app-service
spec:
replicas: {{ .Values.services.apps.replicaCount }}
selector:
matchLabels:
io.kompose.service: app-service
strategy:
2021-10-13 09:58:10 +13:00
type: RollingUpdate
2021-08-16 22:42:21 +12:00
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.21.0 (992df58d8)
creationTimestamp: null
labels:
io.kompose.service: app-service
spec:
containers:
- env:
- name: BUDIBASE_ENVIRONMENT
value: {{ .Values.globals.budibaseEnv }}
- name: DEPLOYMENT_ENVIRONMENT
value: "kubernetes"
2021-08-16 22:42:21 +12:00
- name: COUCH_DB_URL
{{ if .Values.services.couchdb.url }}
value: {{ .Values.services.couchdb.url }}
{{ else }}
value: http://{{ .Release.Name }}-svc-couchdb:{{ .Values.services.couchdb.port }}
{{ end }}
2022-05-05 04:45:46 +12:00
{{ if .Values.services.couchdb.enabled }}
- name: COUCH_DB_USER
valueFrom:
secretKeyRef:
name: {{ template "couchdb.fullname" . }}
key: adminUsername
- name: COUCH_DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "couchdb.fullname" . }}
key: adminPassword
2022-05-05 04:45:46 +12:00
{{ end }}
2021-08-16 22:42:21 +12:00
- name: ENABLE_ANALYTICS
value: {{ .Values.globals.enableAnalytics | quote }}
- name: INTERNAL_API_KEY
valueFrom:
secretKeyRef:
name: {{ template "budibase.fullname" . }}
key: internalApiKey
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: {{ template "budibase.fullname" . }}
key: jwtSecret
{{ if .Values.services.objectStore.region }}
- name: AWS_REGION
value: {{ .Values.services.objectStore.region }}
{{ end }}
2021-08-16 22:42:21 +12:00
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ template "budibase.fullname" . }}
key: objectStoreAccess
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: {{ template "budibase.fullname" . }}
key: objectStoreSecret
- name: MINIO_URL
value: {{ .Values.services.objectStore.url }}
- name: PLUGIN_BUCKET_NAME
value: {{ .Values.services.objectStore.pluginBucketName | quote }}
- name: APPS_BUCKET_NAME
value: {{ .Values.services.objectStore.appsBucketName | quote }}
- name: GLOBAL_CLOUD_BUCKET_NAME
value: {{ .Values.services.objectStore.globalBucketName | quote }}
2022-11-01 23:17:44 +13:00
- name: BACKUPS_BUCKET_NAME
value: {{ .Values.services.objectStore.backupsBucketName | quote }}
2021-08-16 22:42:21 +12:00
- name: PORT
value: {{ .Values.services.apps.port | quote }}
2022-06-01 00:03:59 +12:00
{{ if .Values.services.worker.publicApiRateLimitPerSecond }}
2022-05-31 18:41:43 +12:00
- name: API_REQ_LIMIT_PER_SEC
value: {{ .Values.globals.apps.publicApiRateLimitPerSecond | quote }}
2022-06-01 00:03:59 +12:00
{{ end }}
2021-10-13 09:58:10 +13:00
- name: MULTI_TENANCY
value: {{ .Values.globals.multiTenancy | quote }}
2021-10-21 02:17:47 +13:00
- name: LOG_LEVEL
value: {{ default "info" .Values.services.apps.logLevel | quote }}
2021-08-16 22:42:21 +12:00
- name: REDIS_PASSWORD
value: {{ .Values.services.redis.password }}
- name: REDIS_URL
{{ if .Values.services.redis.url }}
value: {{ .Values.services.redis.url }}
{{ else }}
value: redis-service:{{ .Values.services.redis.port }}
{{ end }}
2021-08-16 22:42:21 +12:00
- name: SELF_HOSTED
value: {{ .Values.globals.selfHosted | quote }}
- name: SENTRY_DSN
value: {{ .Values.globals.sentryDSN }}
2021-10-13 09:58:10 +13:00
- name: POSTHOG_TOKEN
value: {{ .Values.globals.posthogToken }}
2021-08-16 22:42:21 +12:00
- name: WORKER_URL
2021-10-13 09:58:10 +13:00
value: http://worker-service:{{ .Values.services.worker.port }}
- name: PLATFORM_URL
value: {{ .Values.globals.platformUrl | quote }}
- name: ACCOUNT_PORTAL_URL
value: {{ .Values.globals.accountPortalUrl | quote }}
- name: ACCOUNT_PORTAL_API_KEY
value: {{ .Values.globals.accountPortalApiKey | quote }}
2021-10-13 09:58:10 +13:00
- name: COOKIE_DOMAIN
value: {{ .Values.globals.cookieDomain | quote }}
- name: HTTP_MIGRATIONS
value: {{ .Values.globals.httpMigrations | quote }}
- name: GOOGLE_CLIENT_ID
value: {{ .Values.globals.google.clientId | quote }}
- name: GOOGLE_CLIENT_SECRET
value: {{ .Values.globals.google.secret | quote }}
2022-04-13 21:23:40 +12:00
- name: AUTOMATION_MAX_ITERATIONS
value: {{ .Values.globals.automationMaxIterations | quote }}
2022-05-05 20:59:10 +12:00
- name: TENANT_FEATURE_FLAGS
value: {{ .Values.globals.tenantFeatureFlags | quote }}
2022-07-11 22:50:32 +12:00
{{ if .Values.globals.bbAdminUserEmail }}
- name: BB_ADMIN_USER_EMAIL
value: {{ .Values.globals.bbAdminUserEmail | quote }}
2022-07-11 22:50:32 +12:00
{{ end }}
{{ if .Values.globals.bbAdminUserPassword }}
- name: BB_ADMIN_USER_PASSWORD
value: {{ .Values.globals.bbAdminUserPassword | quote }}
{{ end }}
{{ if .Values.globals.pluginsDir }}
- name: PLUGINS_DIR
2022-09-02 01:10:29 +12:00
value: {{ .Values.globals.pluginsDir | quote }}
2022-07-11 22:50:32 +12:00
{{ end }}
{{ if .Values.services.apps.nodeDebug }}
- name: NODE_DEBUG
value: {{ .Values.services.apps.nodeDebug | quote }}
{{ end }}
2022-08-30 21:59:27 +12:00
{{ if .Values.globals.elasticApmEnabled }}
- name: ELASTIC_APM_ENABLED
value: {{ .Values.globals.elasticApmEnabled | quote }}
{{ end }}
{{ if .Values.globals.elasticApmSecretToken }}
- name: ELASTIC_APM_SECRET_TOKEN
2022-08-31 00:53:31 +12:00
value: {{ .Values.globals.elasticApmSecretToken | quote }}
2022-08-30 21:59:27 +12:00
{{ end }}
2022-08-31 00:53:31 +12:00
{{ if .Values.globals.elasticApmServerUrl }}
2022-08-30 21:59:27 +12:00
- name: ELASTIC_APM_SERVER_URL
value: {{ .Values.globals.elasticApmServerUrl | quote }}
{{ end }}
2022-11-08 01:33:21 +13:00
- name: CDN_URL
value: {{ .Values.globals.cdnUrl }}
2022-04-13 21:23:40 +12:00
2021-12-10 00:05:43 +13:00
image: budibase/apps:{{ .Values.globals.appVersion }}
2021-08-16 22:42:21 +12:00
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /health
port: {{ .Values.services.apps.port }}
initialDelaySeconds: 5
periodSeconds: 5
2021-08-16 22:42:21 +12:00
name: bbapps
ports:
- containerPort: {{ .Values.services.apps.port }}
{{ with .Values.services.apps.resources }}
resources:
{{- toYaml . | nindent 10 }}
{{ end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
2022-07-08 02:39:15 +12:00
{{ if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 6 }}
{{ end }}
2021-08-16 22:42:21 +12:00
restartPolicy: Always
serviceAccountName: ""
status: {}