45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
kind: Pod
|
|
apiVersion: v1
|
|
metadata:
|
|
name: cloud
|
|
labels:
|
|
app.kubernetes.io/name: cloud
|
|
spec:
|
|
shareProcessNamespace: true
|
|
containers:
|
|
- name: cloud-app
|
|
image: domaindrivenarchitecture/meissa-cloud-app
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: NEXTCLOUD_ADMIN_USER_FILE
|
|
value: /var/run/secrets/cloud-secrets/nextcloud-admin-user
|
|
- name: NEXTCLOUD_ADMIN_PASSWORD_FILE
|
|
value: /var/run/secrets/cloud-secrets/nextcloud-admin-password
|
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
|
value: "{{fqdn}}"
|
|
- name: POSTGRES_USER_FILE
|
|
value: /var/run/secrets/cloud-secrets/postgres-user
|
|
- name: POSTGRES_PASSWORD_FILE
|
|
value: /var/run/secrets/cloud-secrets/postgres-password
|
|
- name: POSTGRES_DB_FILE
|
|
value: /var/run/secrets/cloud-secrets/postgres-db
|
|
- name: POSTGRES_HOST
|
|
value: "postgresql-service:5432"
|
|
volumeMounts:
|
|
- name: cloud-data-volume
|
|
mountPath: /var/www/html
|
|
- name: cloud-secret-volume
|
|
mountPath: /var/run/secrets/cloud-secrets
|
|
readOnly: true
|
|
volumes:
|
|
- name: cloud-data-volume
|
|
persistentVolumeClaim:
|
|
claimName: cloud-pvc
|
|
- name: cloud-secret-volume
|
|
secret:
|
|
secretName: cloud-secret
|
|
- name: backup-secret-volume
|
|
secret:
|
|
secretName: backup-secret
|