81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
---
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: customer-node
|
|
namespace: customer
|
|
labels:
|
|
app: customer-node
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: customer-node
|
|
template:
|
|
metadata:
|
|
creationTimestamp:
|
|
labels:
|
|
app: customer-node
|
|
spec:
|
|
volumes:
|
|
- name: server-storage
|
|
persistentVolumeClaim:
|
|
claimName: customer-shared-storage-claim
|
|
containers:
|
|
- name: customer
|
|
image: customer
|
|
volumeMounts:
|
|
- name: server-storage
|
|
mountPath: /var/www/html
|
|
subPath: server-data
|
|
env:
|
|
- name: MYSQL_DATABASE
|
|
value: "customer_customer"
|
|
- name: MYSQL_USER
|
|
value: "customer"
|
|
- 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: _customer
|
|
- name: NEXTCLOUD_ADMIN_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: nc-secret
|
|
key: "nc_admin_password"
|
|
- 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"
|
|
resources: {}
|
|
strategy: {}
|
|
status: {}
|