76 lines
1.8 KiB
YAML
76 lines
1.8 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: nextcloud-dev
|
|
|
|
#namePrefix: dev-
|
|
|
|
configurations:
|
|
- ./resources/files/minio/configurations/tenants.minio.min.io.yaml
|
|
|
|
resources:
|
|
- ../../base/
|
|
- resources/cert-manager
|
|
- resources/nextcloud/namespace.yaml
|
|
- resources/nextcloud/ssl.yaml
|
|
- resources/nextcloud/cm-ldap-script.yaml
|
|
- resources/nextcloud/minio-tenant.yaml
|
|
- resources/nextcloud/job-minio.yaml
|
|
|
|
patches:
|
|
- path: patches/deployment.yaml
|
|
- path: patches/nginx-ingress.yaml
|
|
- path: patches/ConfigMap-redis.yaml
|
|
- path: patches/nextcloud-env.yaml
|
|
target:
|
|
kind: ConfigMap
|
|
name: nextcloud-env
|
|
version: v1
|
|
|
|
|
|
# PARTIE MINIO
|
|
|
|
# secret re-généré
|
|
#secretGenerator:
|
|
#- name: db-user-pass
|
|
# envs:
|
|
# - ./resources/files/minio/config.env
|
|
|
|
secretGenerator:
|
|
#Voir https://github.com/minio/operator/issues/856
|
|
- name: nextcloud-minio-user
|
|
literals:
|
|
- CONSOLE_ACCESS_KEY=minio_root
|
|
- CONSOLE_SECRET_KEY=MinioRootNotSoSecret
|
|
- name: nextcloud-minio-configuration
|
|
files:
|
|
- ./resources/files/minio/config.env # A modifier si modification mot de passe et user CONSOLE [ACCESS-SECRET]
|
|
|
|
# ajout de Variable, et redéfinition de certaines
|
|
configMapGenerator:
|
|
#- name: nextcloud-parameters
|
|
# files:
|
|
# - ./resources/files/parameters.yaml
|
|
#- name: nextcloud-env
|
|
# behavior: replace
|
|
# literals:
|
|
# - MINIO_SERVICE_NAME=$(MINIO_SERVICE_HOST):$(MINIO_SERVICE_PORT)
|
|
# - MINIO_SERVICE_HOST=minio
|
|
# - MINIO_SERVICE_PORT=443
|
|
# options:
|
|
# disableNameSuffixHash: true
|
|
- name: nextcloud-smtp
|
|
literals:
|
|
- smtp-username=ouchemail
|
|
- smtp-password=HjkEHJ2676yiu2
|
|
options:
|
|
disableNameSuffixHash: true
|
|
|
|
vars: # génération d'information pour wait-for-bootstrap du pod nextcloud
|
|
- name: MINIO_BOOTSTRAP_JOB_NAME
|
|
objref:
|
|
name: create-minio-bucket
|
|
kind: Job
|
|
apiVersion: batch/v1
|
|
fieldref:
|
|
fieldpath: metadata.name
|