staefullset
This commit is contained in:
parent
fd5dbdb0c8
commit
0c0f704a89
|
@ -1,5 +1,4 @@
|
||||||
---
|
kind: StatefulSet
|
||||||
kind: Deployment
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
|
@ -10,6 +9,8 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: nextcloud-data
|
name: nextcloud-data
|
||||||
|
@ -22,10 +23,10 @@ spec:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp:
|
|
||||||
labels:
|
labels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
spec:
|
spec:
|
||||||
|
restartPolicy: Always
|
||||||
containers:
|
containers:
|
||||||
- name: customer
|
- name: customer
|
||||||
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
||||||
|
@ -33,6 +34,9 @@ spec:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html/config
|
mountPath: /var/www/html/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: nextcloud-http
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: docker.sunet.se/sunet/docker-jinja:latest
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
name: init-config
|
name: init-config
|
||||||
|
@ -149,6 +153,3 @@ spec:
|
||||||
items:
|
items:
|
||||||
- key: "config.php"
|
- key: "config.php"
|
||||||
path: "config.php"
|
path: "config.php"
|
||||||
resources: {}
|
|
||||||
strategy: {}
|
|
||||||
status: {}
|
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
---
|
kind: StatefulSet
|
||||||
kind: Deployment
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
labels:
|
labels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
template:
|
||||||
selector:
|
metadata:
|
||||||
matchLabels:
|
labels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-config
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
|
name: init-config
|
||||||
|
volumeMounts:
|
||||||
|
- name: nextcloud-config-template
|
||||||
|
mountPath: /tmp/config.php.template
|
||||||
|
subPath: config.php
|
||||||
|
- name: nextcloud-data
|
||||||
|
mountPath: /var/www/html/config
|
||||||
|
subPath: config
|
||||||
env:
|
env:
|
||||||
- name: GSS_MASTER_URL
|
- name: GSS_MASTER_URL
|
||||||
value: "https://drive.test.sunet.se"
|
value: "https://drive.test.sunet.se"
|
||||||
|
@ -23,7 +30,7 @@ spec:
|
||||||
- name: MAIL_SMTPNAME
|
- name: MAIL_SMTPNAME
|
||||||
value: "noreply@drive.test.sunet.se"
|
value: "noreply@drive.test.sunet.se"
|
||||||
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
||||||
value: "customer.drive.test.sunet.se"
|
value: "vr.drive.test.sunet.se"
|
||||||
- name: OBJECTSTORE_S3_BUCKET
|
- name: OBJECTSTORE_S3_BUCKET
|
||||||
value: "primary-vr-drive-test.sunet.se"
|
value: "primary-vr-drive-test.sunet.se"
|
||||||
- name: SITE_NAME
|
- name: SITE_NAME
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in a new issue