2023-03-27 11:45:09 +00:00
|
|
|
---
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1
|
|
|
|
metadata:
|
|
|
|
name: customer-node
|
|
|
|
labels:
|
|
|
|
app: customer-node
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: customer-node
|
2023-03-28 21:14:35 +00:00
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: nextcloud-config
|
|
|
|
spec:
|
|
|
|
storageClassName: mayastor-3
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|
2023-03-27 11:45:09 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp:
|
|
|
|
labels:
|
|
|
|
app: customer-node
|
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: server-storage
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: customer-shared-storage-claim
|
|
|
|
containers:
|
|
|
|
- name: customer
|
2023-03-27 14:41:43 +00:00
|
|
|
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
2023-03-27 11:45:09 +00:00
|
|
|
volumeMounts:
|
2023-03-28 15:59:43 +00:00
|
|
|
- name: nextcloud-config
|
2023-03-28 21:14:35 +00:00
|
|
|
mountPath: /var/www/html/config/
|
2023-03-28 15:59:43 +00:00
|
|
|
subPath: config.php
|
2023-03-28 21:04:39 +00:00
|
|
|
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-config
|
2023-03-28 21:14:35 +00:00
|
|
|
mountPath: /var/www/html/config/
|
2023-03-28 21:04:39 +00:00
|
|
|
subPath: config.php
|
2023-03-27 11:45:09 +00:00
|
|
|
env:
|
2023-03-28 21:04:39 +00:00
|
|
|
- name: ADMIN_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: proxysql-secret
|
|
|
|
key: "proxysql_admin_password"
|
2023-03-27 14:41:43 +00:00
|
|
|
- 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"
|
2023-03-27 11:45:09 +00:00
|
|
|
- name: MYSQL_DATABASE
|
2023-03-27 14:41:43 +00:00
|
|
|
value: "customer_nextcloud"
|
2023-03-27 11:45:09 +00:00
|
|
|
- name: MYSQL_USER
|
2023-03-27 14:41:43 +00:00
|
|
|
value: "customer_nextcloud"
|
2023-03-27 11:45:09 +00:00
|
|
|
- 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
|
2023-03-27 14:41:43 +00:00
|
|
|
value: admin
|
|
|
|
- name: NEXTCLOUD_VERSION_STRING
|
|
|
|
value: "25.0.3.3"
|
2023-03-27 11:45:09 +00:00
|
|
|
- name: NEXTCLOUD_ADMIN_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: nc-secret
|
|
|
|
key: "nc_admin_password"
|
2023-03-27 14:41:43 +00:00
|
|
|
- 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"
|
2023-03-27 11:45:09 +00:00
|
|
|
- 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"
|
2023-03-27 14:41:43 +00:00
|
|
|
- name: REDIS_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: redis-secret
|
|
|
|
key: "redis_password"
|
|
|
|
- name: SITE_NAME
|
|
|
|
value: "customer.drive.test.sunet.se"
|
2023-03-28 21:04:39 +00:00
|
|
|
command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /var/www/html/config/config.php /tmp/config.php.template"]
|
2023-03-28 15:59:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: nextcloud-config-template
|
|
|
|
configMap:
|
|
|
|
name: nextcloud-configmap
|
|
|
|
items:
|
|
|
|
- key: "config.php"
|
|
|
|
path: "config.php"
|
2023-03-27 11:45:09 +00:00
|
|
|
resources: {}
|
|
|
|
strategy: {}
|
|
|
|
status: {}
|