You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c4k-nextcloud/src/main/resources/cloud/deployment.yaml

41 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud
spec:
selector:
matchLabels:
app: cloud
strategy:
type: Recreate
template:
metadata:
labels:
app: cloud
spec:
containers:
- image: domaindrivenarchitecture/c4k-cloud
name: cloud-app
imagePullPolicy: IfNotPresent
env:
- name: DB_USERNAME_FILE
value: /var/run/secrets/postgres-secret/postgres-user
- name: DB_PASSWORD_FILE
value: /var/run/secrets/postgres-secret/postgres-password
- name: FQDN
value: fqdn
command: ["/app/entrypoint.sh"]
volumeMounts:
- mountPath: /var/cloud
name: cloud-data-volume
- name: postgres-secret-volume
mountPath: /var/run/secrets/postgres-secret
readOnly: true
volumes:
- name: cloud-data-volume
persistentVolumeClaim:
claimName: cloud-pvc
- name: postgres-secret-volume
secret:
secretName: postgres-secret