staefullset

This commit is contained in:
Micke Nordin 2023-03-28 23:37:32 +02:00
parent fd5dbdb0c8
commit 0c0f704a89
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
3 changed files with 446 additions and 439 deletions

View file

@ -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: {}

View file

@ -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

View file

@ -1,4 +1,3 @@
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata: