apps/ente/resources/museum/deployment.yaml

91 lines
2.4 KiB
YAML
Raw Normal View History

2024-05-13 15:06:06 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: museum
spec:
replicas: 1
2024-09-08 07:37:07 +00:00
revisionHistoryLimit: 3
2024-05-13 15:06:06 +00:00
selector:
matchLabels:
app.kubernetes.io/name: museum
app.kubernetes.io/part-of: ente
template:
metadata:
labels:
app.kubernetes.io/name: museum
app.kubernetes.io/part-of: ente
spec:
containers:
- name: museum
image: museum
env:
- name: ENTE_CREDENTIALS_FILE
value: /credentials.yaml
- name: ENTE_DB_HOST
valueFrom:
secretKeyRef:
2024-08-15 12:13:46 +00:00
name: ente-db-credentials-ente-ente
key: HOST
2024-05-13 15:06:06 +00:00
- name: ENTE_DB_NAME
valueFrom:
secretKeyRef:
2024-08-15 12:13:46 +00:00
name: ente-db-credentials-ente-ente
key: DATABASE_NAME
2024-05-13 15:06:06 +00:00
- name: ENTE_DB_USER
valueFrom:
secretKeyRef:
2024-08-15 12:13:46 +00:00
name: ente-db-credentials-ente-ente
key: LOGIN
2024-05-13 15:06:06 +00:00
- name: ENTE_DB_PASSWORD
valueFrom:
secretKeyRef:
2024-08-15 12:13:46 +00:00
name: ente-db-credentials-ente-ente
key: PASSWORD
2024-05-13 15:06:06 +00:00
- name: ENTE_DB_SSLMODE
value: require
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "250m"
ports:
- name: api
containerPort: 8080
- name: metrics
containerPort: 2112
readinessProbe:
httpGet:
path: /ping
port: 8080
livenessProbe:
httpGet:
path: /ping
port: 8080
volumeMounts:
- name: logs
mountPath: /var/log/ente
- name: config
mountPath: /museum.yaml
subPath: museum.yaml
- name: credentials
mountPath: /credentials.yaml
subPath: credentials.yaml
volumes:
- name: logs
emptyDir: {}
- name: config
configMap:
name: museum-config
items:
- key: museum.yaml
path: museum.yaml
- name: credentials
secret:
secretName: museum-credentials
items:
- key: credentials.yaml
path: credentials.yaml
nodeSelector:
kubernetes.io/arch: arm64