2023-11-14 21:12:33 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: vikunja-api
|
|
|
|
spec:
|
2023-11-22 19:27:05 +00:00
|
|
|
replicas: 2
|
2023-11-14 21:12:33 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: vikunja
|
|
|
|
app.kubernetes.io/component: api
|
|
|
|
app.kubernetes.io/part-of: vikunja
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: vikunja
|
|
|
|
app.kubernetes.io/component: api
|
|
|
|
app.kubernetes.io/part-of: vikunja
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: vikunja-api
|
|
|
|
image: vikunja-api
|
|
|
|
command:
|
|
|
|
- /app/vikunja/vikunja
|
|
|
|
env:
|
|
|
|
- name: VIKUNJA_DATABASE_TYPE
|
|
|
|
value: postgres
|
|
|
|
- name: VIKUNJA_SERVICE_FRONTENDURL
|
|
|
|
value: https://todo.icb4dc0.de
|
|
|
|
- name: VIKUNJA_DATABASE_SSLMODE
|
|
|
|
value: require
|
|
|
|
- name: VIKUNJA_DATABASE_HOST
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: default-cluster-pguser-vikunja
|
|
|
|
key: host
|
|
|
|
- name: VIKUNJA_DATABASE_DATABASE
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: default-cluster-pguser-vikunja
|
|
|
|
key: dbname
|
|
|
|
- name: VIKUNJA_DATABASE_USER
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: default-cluster-pguser-vikunja
|
|
|
|
key: user
|
|
|
|
- name: VIKUNJA_DATABASE_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: default-cluster-pguser-vikunja
|
|
|
|
key: password
|
2024-05-09 13:16:35 +00:00
|
|
|
- name: GOMEMLIMIT
|
|
|
|
valueFrom:
|
|
|
|
resourceFieldRef:
|
|
|
|
resource: limits.memory
|
2023-11-14 21:12:33 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3456
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
privileged: false
|
|
|
|
resources:
|
2024-05-09 13:16:35 +00:00
|
|
|
requests:
|
|
|
|
memory: 30Mi
|
|
|
|
cpu: 20m
|
2023-11-14 21:12:33 +00:00
|
|
|
limits:
|
2024-05-09 13:16:35 +00:00
|
|
|
memory: "100Mi"
|
|
|
|
cpu: "50m"
|
2023-11-14 21:12:33 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: vikunja-config
|
|
|
|
mountPath: /etc/vikunja
|
|
|
|
- name: vikunja-content
|
|
|
|
mountPath: /app/vikunja/files
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsNonRoot: false
|
2023-11-25 11:36:07 +00:00
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- weight: 100
|
|
|
|
preference:
|
|
|
|
matchExpressions:
|
|
|
|
- key: kubernetes.io/arch
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- arm64
|
2023-11-14 21:12:33 +00:00
|
|
|
volumes:
|
|
|
|
- name: vikunja-config
|
|
|
|
secret:
|
2024-04-27 10:29:44 +00:00
|
|
|
secretName: vikunja-api-config
|
2023-11-14 21:12:33 +00:00
|
|
|
- name: vikunja-content
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: vikunja-content
|