From 0c0f704a89b57985dcbe2efb39b5310d171f74ec Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 28 Mar 2023 23:37:32 +0200 Subject: [PATCH] staefullset --- customers/base/nextcloud-deployment.yml | 273 ++++----- .../overlays/vr/test/nextcloud-deployment.yml | 51 +- proxysql/base/proxysql-deployment.yml | 561 +++++++++--------- 3 files changed, 446 insertions(+), 439 deletions(-) diff --git a/customers/base/nextcloud-deployment.yml b/customers/base/nextcloud-deployment.yml index 60ead61..dd983a9 100644 --- a/customers/base/nextcloud-deployment.yml +++ b/customers/base/nextcloud-deployment.yml @@ -1,5 +1,4 @@ ---- -kind: Deployment +kind: StatefulSet apiVersion: apps/v1 metadata: name: customer-node @@ -10,145 +9,147 @@ spec: selector: matchLabels: app: customer-node + updateStrategy: + type: RollingUpdate volumeClaimTemplates: - - metadata: - name: nextcloud-data - spec: - storageClassName: mayastor-3 - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi + - metadata: + name: nextcloud-data + spec: + storageClassName: mayastor-3 + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi template: metadata: - creationTimestamp: labels: app: customer-node spec: + restartPolicy: Always containers: - - name: customer - image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4 - volumeMounts: - - name: nextcloud-data - mountPath: /var/www/html/config - subPath: config + - name: customer + image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4 + volumeMounts: + - name: nextcloud-data + mountPath: /var/www/html/config + subPath: config + ports: + - containerPort: 80 + name: nextcloud-http initContainers: - - 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: - - name: ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_admin_password" - - name: GSS_MASTER_URL - value: "https://drive.test.sunet.se" - - name: GSS_JWT_KEY - valueFrom: - secretKeyRef: - name: gss-secret - key: "jwt_key" - - name: LOOKUP_SERVER - value: "https://lookup.drive.test.sunet.se" - - name: MAIL_DOMAIN - value: "drive.test.sunet.se" - - name: MAIL_FROM_ADDRESS - value: "noreply" - - name: MAIL_SMTPHOST - value: "smtp.sunet.se" - - name: MAIL_SMTPNAME - value: "noreply@drive.test.sunet.se" - - name: MAIL_SMTPPASSWORD - valueFrom: - secretKeyRef: - name: mail-secret - key: "smtp_password" - - name: MYSQL_DATABASE - value: "customer_nextcloud" - - name: MYSQL_USER - value: "customer_nextcloud" - - name: MYSQL_HOST - value: "proxysql.proxysql" - - name: MYSQL_PASSWORD - valueFrom: - secretKeyRef: - name: db-secret - key: "db_password" - - name: MYSQL_PORT - value: "6033" - - name: NEXTCLOUD_TRUSTED_DOMAINS - value: "customer.drive.test.sunet.se" - - name: NEXTCLOUD_ADMIN_USER - value: admin - - name: NEXTCLOUD_VERSION_STRING - value: "25.0.3.3" - - name: NEXTCLOUD_ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: nc-secret - key: "nc_admin_password" - - name: NEXTCLOUD_PASSWORDSALT - valueFrom: - secretKeyRef: - name: nc-secret - key: "nc_passwordsalt" - - name: NEXTCLOUD_INSTANCEID - valueFrom: - secretKeyRef: - name: nc-secret - key: "nc_instanceid" - - name: NEXTCLOUD_SECRET - valueFrom: - secretKeyRef: - name: nc-secret - key: "nc_secret" - - name: OBJECTSTORE_S3_REGION - value: "us-east-1" - - name: OBJECTSTORE_S3_HOST - value: "s3.sto4.safedc.net" - - name: OBJECTSTORE_S3_BUCKET - value: "primary-customer-drive-test.sunet.se" - - name: OBJECTSTORE_S3_KEY - valueFrom: - secretKeyRef: - name: s3-secret - key: "s3_key" - - name: OBJECTSTORE_S3_SECRET - valueFrom: - secretKeyRef: - name: s3-secret - key: "s3_secret" - - name: OBJECTSTORE_S3_USEPATH_STYLE - value: "true" - - name: OBJECTSTORE_S3_AUTOCREATE - value: "true" - - name: OBJECTSTORE_S3_SSL - value: "true" - - name: REDIS_HOST - value: "redis.redis" - - name: REDIS_PASSWORD - valueFrom: - secretKeyRef: - name: redis-secret - key: "redis_password" - - name: SITE_NAME - value: "customer.drive.test.sunet.se" - command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /var/www/html/config/config.php /tmp/config.php.template"] - volumes: - - name: nextcloud-config-template - configMap: - name: nextcloud-configmap - items: - - key: "config.php" - path: "config.php" - resources: {} - strategy: {} -status: {} + - 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: + - name: ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_admin_password" + - name: GSS_MASTER_URL + value: "https://drive.test.sunet.se" + - name: GSS_JWT_KEY + valueFrom: + secretKeyRef: + name: gss-secret + key: "jwt_key" + - name: LOOKUP_SERVER + value: "https://lookup.drive.test.sunet.se" + - name: MAIL_DOMAIN + value: "drive.test.sunet.se" + - name: MAIL_FROM_ADDRESS + value: "noreply" + - name: MAIL_SMTPHOST + value: "smtp.sunet.se" + - name: MAIL_SMTPNAME + value: "noreply@drive.test.sunet.se" + - name: MAIL_SMTPPASSWORD + valueFrom: + secretKeyRef: + name: mail-secret + key: "smtp_password" + - name: MYSQL_DATABASE + value: "customer_nextcloud" + - name: MYSQL_USER + value: "customer_nextcloud" + - name: MYSQL_HOST + value: "proxysql.proxysql" + - name: MYSQL_PASSWORD + valueFrom: + secretKeyRef: + name: db-secret + key: "db_password" + - name: MYSQL_PORT + value: "6033" + - name: NEXTCLOUD_TRUSTED_DOMAINS + value: "customer.drive.test.sunet.se" + - name: NEXTCLOUD_ADMIN_USER + value: admin + - name: NEXTCLOUD_VERSION_STRING + value: "25.0.3.3" + - name: NEXTCLOUD_ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: nc-secret + key: "nc_admin_password" + - name: NEXTCLOUD_PASSWORDSALT + valueFrom: + secretKeyRef: + name: nc-secret + key: "nc_passwordsalt" + - name: NEXTCLOUD_INSTANCEID + valueFrom: + secretKeyRef: + name: nc-secret + key: "nc_instanceid" + - name: NEXTCLOUD_SECRET + valueFrom: + secretKeyRef: + name: nc-secret + key: "nc_secret" + - name: OBJECTSTORE_S3_REGION + value: "us-east-1" + - name: OBJECTSTORE_S3_HOST + value: "s3.sto4.safedc.net" + - name: OBJECTSTORE_S3_BUCKET + value: "primary-customer-drive-test.sunet.se" + - name: OBJECTSTORE_S3_KEY + valueFrom: + secretKeyRef: + name: s3-secret + key: "s3_key" + - name: OBJECTSTORE_S3_SECRET + valueFrom: + secretKeyRef: + name: s3-secret + key: "s3_secret" + - name: OBJECTSTORE_S3_USEPATH_STYLE + value: "true" + - name: OBJECTSTORE_S3_AUTOCREATE + value: "true" + - name: OBJECTSTORE_S3_SSL + value: "true" + - name: REDIS_HOST + value: "redis.redis" + - name: REDIS_PASSWORD + valueFrom: + secretKeyRef: + name: redis-secret + key: "redis_password" + - name: SITE_NAME + value: "customer.drive.test.sunet.se" + command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /var/www/html/config/config.php /tmp/config.php.template"] + volumes: + - name: nextcloud-config-template + configMap: + name: nextcloud-configmap + items: + - key: "config.php" + path: "config.php" diff --git a/customers/overlays/vr/test/nextcloud-deployment.yml b/customers/overlays/vr/test/nextcloud-deployment.yml index c4e4317..a7a6003 100644 --- a/customers/overlays/vr/test/nextcloud-deployment.yml +++ b/customers/overlays/vr/test/nextcloud-deployment.yml @@ -1,30 +1,37 @@ ---- -kind: Deployment +kind: StatefulSet apiVersion: apps/v1 metadata: name: customer-node labels: app: customer-node spec: - replicas: 1 - selector: - matchLabels: - app: customer-node + template: + metadata: + labels: + app: customer-node spec: initContainers: - - name: init-config - env: - - 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: "customer.drive.test.sunet.se" - - name: OBJECTSTORE_S3_BUCKET - value: "primary-vr-drive-test.sunet.se" - - name: SITE_NAME - value: "vr.drive.test.sunet.se" + - 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: + - 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: "vr.drive.test.sunet.se" + - name: OBJECTSTORE_S3_BUCKET + value: "primary-vr-drive-test.sunet.se" + - name: SITE_NAME + value: "vr.drive.test.sunet.se" diff --git a/proxysql/base/proxysql-deployment.yml b/proxysql/base/proxysql-deployment.yml index 534e306..13c965e 100644 --- a/proxysql/base/proxysql-deployment.yml +++ b/proxysql/base/proxysql-deployment.yml @@ -1,4 +1,3 @@ ---- apiVersion: apps/v1 kind: StatefulSet metadata: @@ -15,26 +14,26 @@ spec: updateStrategy: type: RollingUpdate volumeClaimTemplates: - - metadata: - name: proxysql-data - namespace: proxysql - spec: - storageClassName: mayastor-3 - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 2Gi - - metadata: - name: proxysql-etc - namespace: proxysql - spec: - storageClassName: mayastor-3 - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 2Gi + - metadata: + name: proxysql-data + namespace: proxysql + spec: + storageClassName: mayastor-3 + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + - metadata: + name: proxysql-etc + namespace: proxysql + spec: + storageClassName: mayastor-3 + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi template: metadata: labels: @@ -42,267 +41,267 @@ spec: spec: restartPolicy: Always containers: - - image: proxysql/proxysql:2.3.1 - name: proxysql - volumeMounts: - - name: proxysql-data - mountPath: /var/lib/proxysql - subPath: data - - name: proxysql-etc - mountPath: /etc - subPath: etc - ports: - - containerPort: 6033 - name: proxysql-mysql - - containerPort: 6032 - name: proxysql-admin + - image: proxysql/proxysql:2.3.1 + name: proxysql + volumeMounts: + - name: proxysql-data + mountPath: /var/lib/proxysql + subPath: data + - name: proxysql-etc + mountPath: /etc + subPath: etc + ports: + - containerPort: 6033 + name: proxysql-mysql + - containerPort: 6032 + name: proxysql-admin initContainers: - - image: docker.sunet.se/sunet/docker-jinja:latest - name: init-config - volumeMounts: - - name: proxysql-config-template - mountPath: /tmp/proxysql.cnf.template - subPath: proxysql.cnf - - name: proxysql-etc - mountPath: /etc - subPath: etc - env: - - name: ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_admin_password" - - name: CLUSTER_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_cluster_password" - - name: MONITOR_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_monitor_password" - - name: ANTAGNING_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_antagning_password" - - name: BTH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_bth_password" - - name: CHALMERS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_chalmers_password" - - name: DU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_du_password" - - name: ESH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_esh_password" - - name: FHS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_fhs_password" - - name: GU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_gu_password" - - name: HB_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_hb_password" - - name: HHS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_hhs_password" - - name: HIG_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_hig_password" - - name: HIS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_his_password" - - name: HJ_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_hj_password" - - name: HV_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_hv_password" - - name: IRF_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_irf_password" - - name: KB_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_kb_password" - - name: KI_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_ki_password" - - name: KKH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_kkh_password" - - name: KMH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_kmh_password" - - name: KONSTFACK_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_konstfack_password" - - name: KTH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_kth_password" - - name: KVA_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_kva_password" - - name: LIU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_liu_password" - - name: LNU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_lnu_password" - - name: LTU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_ltu_password" - - name: LU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_lu_password" - - name: MAU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_mau_password" - - name: MIUN_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_miun_password" - - name: NORDUNET_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_nordunet_password" - - name: NRM_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_nrm_password" - - name: ORU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_oru_password" - - name: RKH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_rkh_password" - - name: SHH_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_shh_password" - - name: SICS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_sics_password" - - name: SLU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_slu_password" - - name: SMHI_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_smhi_password" - - name: SP_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_sp_password" - - name: SWAMID_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_swamid_password" - - name: THS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_ths_password" - - name: UHR_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_uhr_password" - - name: UMU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_umu_password" - - name: UNIARTS_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_uniarts_password" - - name: UU_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_uu_password" - - name: VINNOVA_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_vinnova_password" - - name: VR_PASSWORD - valueFrom: - secretKeyRef: - name: proxysql-secret - key: "proxysql_vr_password" - command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /etc/proxysql.cnf /tmp/proxysql.cnf.template"] + - image: docker.sunet.se/sunet/docker-jinja:latest + name: init-config + volumeMounts: + - name: proxysql-config-template + mountPath: /tmp/proxysql.cnf.template + subPath: proxysql.cnf + - name: proxysql-etc + mountPath: /etc + subPath: etc + env: + - name: ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_admin_password" + - name: CLUSTER_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_cluster_password" + - name: MONITOR_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_monitor_password" + - name: ANTAGNING_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_antagning_password" + - name: BTH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_bth_password" + - name: CHALMERS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_chalmers_password" + - name: DU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_du_password" + - name: ESH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_esh_password" + - name: FHS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_fhs_password" + - name: GU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_gu_password" + - name: HB_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_hb_password" + - name: HHS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_hhs_password" + - name: HIG_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_hig_password" + - name: HIS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_his_password" + - name: HJ_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_hj_password" + - name: HV_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_hv_password" + - name: IRF_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_irf_password" + - name: KB_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_kb_password" + - name: KI_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_ki_password" + - name: KKH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_kkh_password" + - name: KMH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_kmh_password" + - name: KONSTFACK_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_konstfack_password" + - name: KTH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_kth_password" + - name: KVA_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_kva_password" + - name: LIU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_liu_password" + - name: LNU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_lnu_password" + - name: LTU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_ltu_password" + - name: LU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_lu_password" + - name: MAU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_mau_password" + - name: MIUN_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_miun_password" + - name: NORDUNET_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_nordunet_password" + - name: NRM_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_nrm_password" + - name: ORU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_oru_password" + - name: RKH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_rkh_password" + - name: SHH_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_shh_password" + - name: SICS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_sics_password" + - name: SLU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_slu_password" + - name: SMHI_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_smhi_password" + - name: SP_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_sp_password" + - name: SWAMID_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_swamid_password" + - name: THS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_ths_password" + - name: UHR_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_uhr_password" + - name: UMU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_umu_password" + - name: UNIARTS_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_uniarts_password" + - name: UU_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_uu_password" + - name: VINNOVA_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_vinnova_password" + - name: VR_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_vr_password" + command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /etc/proxysql.cnf /tmp/proxysql.cnf.template"] volumes: - name: proxysql-config-template configMap: