44 lines
828 B
YAML
44 lines
828 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: todos
|
|
labels:
|
|
app: todos
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: todos
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: todos
|
|
spec:
|
|
containers:
|
|
- name: todos
|
|
image: todos
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 200Mi
|
|
|
|
ports:
|
|
- containerPort: 3456
|
|
name: web
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /db
|
|
- name: config
|
|
mountPath: /app/vikunja/config.yml
|
|
subPath: config.yml
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: data
|
|
- name: config
|
|
secret:
|
|
secretName: todos-config
|