k8s_notes-wiki/notes-wiki_deployment.yml

56 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-08-01 21:15:14 -04:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: notes-wiki
spec:
selector:
matchLabels:
app: notes-wiki
replicas: 1
strategy:
type: RollingUpdate
2021-08-01 21:15:14 -04:00
template:
metadata:
labels:
app: notes-wiki
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
2021-12-27 15:13:39 -05:00
- key: kubernetes.io/arch
2021-08-01 21:15:14 -04:00
operator: In
values:
- amd64
containers:
- name: notes-wiki
image: nicolaw/tiddlywiki
2021-08-01 21:15:14 -04:00
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "America/Toronto"
- name: TW_USERNAME
2021-08-01 21:15:14 -04:00
value: "rmorrow"
- name: TW_PASSWORD
2021-08-01 21:15:14 -04:00
valueFrom:
secretKeyRef:
name: notes-wiki-pass
key: WIKI_PASSWD
ports:
- containerPort: 8080
name: "notes-wiki"
volumeMounts:
- name: notes-wiki
mountPath: "/var/lib/tiddlywiki"
volumes:
- name: notes-wiki
persistentVolumeClaim:
claimName: notes-wiki-pvc
# EOF