2024-09-03 23:44:57 +07:00

41 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: furtuna-backend
namespace: altru-production
spec:
selector:
matchLabels:
app: furtuna-backend
replicas: 1
template:
metadata:
labels:
app: furtuna-backend
spec:
serviceAccountName: custom-serviceaccount
containers:
- name: furtuna-backend
image: registry.gitlab.com/altru.id/furtuna/furtuna-backend:<VERSION>
ports:
- containerPort: 3300
volumeMounts:
- mountPath: "/infra"
name: furtuna-backend-secret
readOnly: true
- mountPath: "/templates"
name: templates-configmap
env:
- name: ENV_MODE
value: "production"
volumes:
- name: furtuna-backend-secret
secret:
secretName: furtuna-backend-secret
- name: templates-configmap
configMap:
name: templates-configmap
imagePullSecrets:
- name: regcred