From df38c96e04c64847380ff488bb6d75dab6de0f64 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 30 Mar 2023 10:50:16 +0200 Subject: [PATCH] Add vinnova in test --- .../overlays/vinnova/test/kustomization.yaml | 7 ++++ .../vinnova/test/nextcloud-deployment.yml | 34 +++++++++++++++++++ .../vinnova/test/nextcloud-ingress.yml | 26 ++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 customers/overlays/vinnova/test/kustomization.yaml create mode 100644 customers/overlays/vinnova/test/nextcloud-deployment.yml create mode 100644 customers/overlays/vinnova/test/nextcloud-ingress.yml diff --git a/customers/overlays/vinnova/test/kustomization.yaml b/customers/overlays/vinnova/test/kustomization.yaml new file mode 100644 index 0000000..036c61d --- /dev/null +++ b/customers/overlays/vinnova/test/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: 'kustomize.config.k8s.io/v1beta1' +kind: Kustomization +bases: +- ../../../base +patchesStrategicMerge: + - nextcloud-deployment.yml + - nextcloud-ingress.yml diff --git a/customers/overlays/vinnova/test/nextcloud-deployment.yml b/customers/overlays/vinnova/test/nextcloud-deployment.yml new file mode 100644 index 0000000..c100ea0 --- /dev/null +++ b/customers/overlays/vinnova/test/nextcloud-deployment.yml @@ -0,0 +1,34 @@ +kind: StatefulSet +apiVersion: apps/v1 +metadata: + name: customer-node + labels: + app: customer-node +spec: + template: + metadata: + labels: + app: customer-node + spec: + initContainers: + - image: docker.sunet.se/sunet/docker-jinja:latest + name: init-config + env: + - name: MYSQL_DATABASE + value: "nextcloud_vinnova" + - name: MYSQL_USER + value: "nextcloud_vinnova" + - name: GSS_MASTER_URL + value: "https://drive.test.sunet.se" + - name: LOOKUP_SERVER + value: "https://lookup.drive.test.sunet.se" + - name: MAIL_DOMAIN + value: "drive.test.sunet.se" + - name: MAIL_SMTPNAME + value: "noreply@drive.test.sunet.se" + - name: NEXTCLOUD_TRUSTED_DOMAINS + value: "vinnova.drive.test.sunet.se" + - name: OBJECTSTORE_S3_BUCKET + value: "primary-vinnova-drive-test.sunet.se" + - name: SITE_NAME + value: "vinnova.drive.test.sunet.se" diff --git a/customers/overlays/vinnova/test/nextcloud-ingress.yml b/customers/overlays/vinnova/test/nextcloud-ingress.yml new file mode 100644 index 0000000..70c9829 --- /dev/null +++ b/customers/overlays/vinnova/test/nextcloud-ingress.yml @@ -0,0 +1,26 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: customer-ingress + annotations: + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + tls: + - hosts: + - vinnova.drive.test.sunet.se + secretName: tls-secret + + rules: + - host: vinnova.drive.test.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: customer-node + port: + number: 80