infra4talos/apps-kustomized/writefreely/deploy.yaml

61 lines
1.5 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: writefreely
name: blog-writefreely
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: writefreely
template:
metadata:
labels:
app.kubernetes.io/name: writefreely
spec:
containers:
- args:
- -c
- /conf/config.ini
env:
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: mariadb-password
name: db-creds
image: writeas/writefreely
imagePullPolicy: IfNotPresent
name: writefreely
volumeMounts:
- mountPath: /conf
name: full-config
dnsPolicy: ClusterFirst
initContainers:
- args:
- config.ini
env:
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: mariadb-password
name: db-creds
image: dibi/envsubst
imagePullPolicy: Always
name: processconfig
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /workdir
name: blog-config
- mountPath: /processed
name: full-config
volumes:
- configMap:
defaultMode: 420
name: blog-config
name: blog-config
- name: full-config
persistentVolumeClaim:
claimName: writefreely-config-data