2022-12-22 20:29:31 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-database
|
|
|
|
name: nextcloud-aio-database
|
2023-08-10 06:46:40 +08:00
|
|
|
namespace: {{ .Values.NAMESPACE }}
|
2022-12-22 20:29:31 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-database
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.network/nextcloud-aio: "true"
|
|
|
|
io.kompose.service: nextcloud-aio-database
|
|
|
|
spec:
|
2023-02-03 00:37:19 +08:00
|
|
|
initContainers:
|
2023-05-11 17:48:01 +08:00
|
|
|
- name: init-subpath
|
|
|
|
image: alpine
|
|
|
|
command:
|
|
|
|
- mkdir
|
|
|
|
- "-p"
|
|
|
|
- /nextcloud-aio-database/data
|
|
|
|
- /nextcloud-aio-database
|
|
|
|
- /nextcloud-aio-database-dump
|
2023-07-20 21:54:51 +08:00
|
|
|
- /nextcloud-aio-database-tmpfs0
|
2023-05-11 17:48:01 +08:00
|
|
|
volumeMounts:
|
2023-07-20 21:54:51 +08:00
|
|
|
- name: nextcloud-aio-database-tmpfs0
|
|
|
|
mountPath: /nextcloud-aio-database-tmpfs0
|
2023-05-11 17:48:01 +08:00
|
|
|
- name: nextcloud-aio-database-dump
|
|
|
|
mountPath: /nextcloud-aio-database-dump
|
|
|
|
- name: nextcloud-aio-database
|
|
|
|
mountPath: /nextcloud-aio-database
|
2023-02-01 23:00:52 +08:00
|
|
|
- name: init-volumes
|
|
|
|
image: alpine
|
|
|
|
command:
|
2023-02-02 22:44:37 +08:00
|
|
|
- chown
|
|
|
|
- 999:999
|
2023-05-11 17:48:01 +08:00
|
|
|
- "-R"
|
2023-02-02 22:44:37 +08:00
|
|
|
- /nextcloud-aio-database
|
|
|
|
- /nextcloud-aio-database-dump
|
2023-07-20 21:54:51 +08:00
|
|
|
- /nextcloud-aio-database-tmpfs0
|
2023-02-01 23:00:52 +08:00
|
|
|
volumeMounts:
|
2023-07-20 21:54:51 +08:00
|
|
|
- name: nextcloud-aio-database-tmpfs0
|
|
|
|
mountPath: /nextcloud-aio-database-tmpfs0
|
2023-02-01 23:00:52 +08:00
|
|
|
- name: nextcloud-aio-database-dump
|
|
|
|
mountPath: /nextcloud-aio-database-dump
|
|
|
|
- name: nextcloud-aio-database
|
|
|
|
mountPath: /nextcloud-aio-database
|
2022-12-22 20:29:31 +08:00
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: PGTZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
|
|
|
- name: POSTGRES_DB
|
|
|
|
value: nextcloud_database
|
|
|
|
- name: POSTGRES_PASSWORD
|
|
|
|
value: "{{ .Values.DATABASE_PASSWORD }}"
|
|
|
|
- name: POSTGRES_USER
|
|
|
|
value: nextcloud
|
|
|
|
- name: TZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2023-09-12 16:46:20 +08:00
|
|
|
image: nextcloud/aio-postgresql:20230912_084059-latest
|
2022-12-22 20:29:31 +08:00
|
|
|
name: nextcloud-aio-database
|
2023-02-02 22:44:37 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 5432
|
2023-07-20 21:54:51 +08:00
|
|
|
hostPort: 5432
|
|
|
|
protocol: TCP
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: true
|
2022-12-22 20:29:31 +08:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/lib/postgresql/data
|
2023-05-11 17:48:01 +08:00
|
|
|
subPath: data
|
2022-12-22 20:29:31 +08:00
|
|
|
name: nextcloud-aio-database
|
|
|
|
- mountPath: /mnt/data
|
|
|
|
name: nextcloud-aio-database-dump
|
2023-07-20 21:54:51 +08:00
|
|
|
- mountPath: /var/run/postgresql
|
|
|
|
name: nextcloud-aio-database-tmpfs0
|
2022-12-22 20:29:31 +08:00
|
|
|
terminationGracePeriodSeconds: 1800
|
|
|
|
volumes:
|
|
|
|
- name: nextcloud-aio-database
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: nextcloud-aio-database
|
|
|
|
- name: nextcloud-aio-database-dump
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: nextcloud-aio-database-dump
|
2023-07-20 21:54:51 +08:00
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-database-tmpfs0
|