From 7bce445878715bf41e3a880d0e418593f0f81ad7 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Thu, 13 Mar 2025 11:11:06 +0100 Subject: [PATCH] Add custom pw wp --- apps/templates/mbgwp-folder.yaml | 21 ++++++++++++++++++ apps/templates/mbgwp-helm.yaml | 3 +++ .../custom-logs-persistentvolumeclaim.yaml | 0 .../ente-photos}/ente-deployment.yaml | 0 .../ente-photos}/ente-ingress.yaml | 0 .../ente-photos}/ente-photos-es.yaml | 0 .../ente-photos}/ente-web-deployment.yaml | 0 .../ente-photos}/ente-web-ingress.yaml | 0 .../ente-photos}/ente-web-service.yaml | 0 .../ente-photos}/helm-postgres.yaml | 0 .../museum-claim1-persistentvolumeclaim.yaml | 0 .../museum-claim3-persistentvolumeclaim.yaml | 0 .../ente-photos}/museum-service.yaml | 0 .../ente-photos}/pgadmin-es.yaml | 0 .../ente-photos}/pgadmin.yaml | 0 .../ente-photos}/postgres-values.yaml | 0 .../ente-photos}/postgresql-es.yaml | 0 mbgwp/default-pw-es.yaml | 22 +++++++++++++++++++ 18 files changed, 46 insertions(+) create mode 100644 apps/templates/mbgwp-folder.yaml rename {ente-photos => disable/ente-photos}/custom-logs-persistentvolumeclaim.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-deployment.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-ingress.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-photos-es.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-web-deployment.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-web-ingress.yaml (100%) rename {ente-photos => disable/ente-photos}/ente-web-service.yaml (100%) rename {ente-photos => disable/ente-photos}/helm-postgres.yaml (100%) rename {ente-photos => disable/ente-photos}/museum-claim1-persistentvolumeclaim.yaml (100%) rename {ente-photos => disable/ente-photos}/museum-claim3-persistentvolumeclaim.yaml (100%) rename {ente-photos => disable/ente-photos}/museum-service.yaml (100%) rename {ente-photos => disable/ente-photos}/pgadmin-es.yaml (100%) rename {ente-photos => disable/ente-photos}/pgadmin.yaml (100%) rename {ente-photos => disable/ente-photos}/postgres-values.yaml (100%) rename {ente-photos => disable/ente-photos}/postgresql-es.yaml (100%) create mode 100644 mbgwp/default-pw-es.yaml diff --git a/apps/templates/mbgwp-folder.yaml b/apps/templates/mbgwp-folder.yaml new file mode 100644 index 0000000..c2fd5d3 --- /dev/null +++ b/apps/templates/mbgwp-folder.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: mbgwp-folder + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://github.com/rubenhensen/k8scd.git + targetRevision: HEAD + path: mbgwp + destination: + server: https://kubernetes.default.svc + namespace: mbgwp + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true \ No newline at end of file diff --git a/apps/templates/mbgwp-helm.yaml b/apps/templates/mbgwp-helm.yaml index 8add069..8286a1d 100644 --- a/apps/templates/mbgwp-helm.yaml +++ b/apps/templates/mbgwp-helm.yaml @@ -76,6 +76,9 @@ spec: ## annotations: {} allowEmptyPassword: false + wordpressPassword: wordpress-password + wordpressUsername: rubenhensen + smtpExistingSecret: smtp-password lifecycleHooks: postStart: exec: diff --git a/ente-photos/custom-logs-persistentvolumeclaim.yaml b/disable/ente-photos/custom-logs-persistentvolumeclaim.yaml similarity index 100% rename from ente-photos/custom-logs-persistentvolumeclaim.yaml rename to disable/ente-photos/custom-logs-persistentvolumeclaim.yaml diff --git a/ente-photos/ente-deployment.yaml b/disable/ente-photos/ente-deployment.yaml similarity index 100% rename from ente-photos/ente-deployment.yaml rename to disable/ente-photos/ente-deployment.yaml diff --git a/ente-photos/ente-ingress.yaml b/disable/ente-photos/ente-ingress.yaml similarity index 100% rename from ente-photos/ente-ingress.yaml rename to disable/ente-photos/ente-ingress.yaml diff --git a/ente-photos/ente-photos-es.yaml b/disable/ente-photos/ente-photos-es.yaml similarity index 100% rename from ente-photos/ente-photos-es.yaml rename to disable/ente-photos/ente-photos-es.yaml diff --git a/ente-photos/ente-web-deployment.yaml b/disable/ente-photos/ente-web-deployment.yaml similarity index 100% rename from ente-photos/ente-web-deployment.yaml rename to disable/ente-photos/ente-web-deployment.yaml diff --git a/ente-photos/ente-web-ingress.yaml b/disable/ente-photos/ente-web-ingress.yaml similarity index 100% rename from ente-photos/ente-web-ingress.yaml rename to disable/ente-photos/ente-web-ingress.yaml diff --git a/ente-photos/ente-web-service.yaml b/disable/ente-photos/ente-web-service.yaml similarity index 100% rename from ente-photos/ente-web-service.yaml rename to disable/ente-photos/ente-web-service.yaml diff --git a/ente-photos/helm-postgres.yaml b/disable/ente-photos/helm-postgres.yaml similarity index 100% rename from ente-photos/helm-postgres.yaml rename to disable/ente-photos/helm-postgres.yaml diff --git a/ente-photos/museum-claim1-persistentvolumeclaim.yaml b/disable/ente-photos/museum-claim1-persistentvolumeclaim.yaml similarity index 100% rename from ente-photos/museum-claim1-persistentvolumeclaim.yaml rename to disable/ente-photos/museum-claim1-persistentvolumeclaim.yaml diff --git a/ente-photos/museum-claim3-persistentvolumeclaim.yaml b/disable/ente-photos/museum-claim3-persistentvolumeclaim.yaml similarity index 100% rename from ente-photos/museum-claim3-persistentvolumeclaim.yaml rename to disable/ente-photos/museum-claim3-persistentvolumeclaim.yaml diff --git a/ente-photos/museum-service.yaml b/disable/ente-photos/museum-service.yaml similarity index 100% rename from ente-photos/museum-service.yaml rename to disable/ente-photos/museum-service.yaml diff --git a/ente-photos/pgadmin-es.yaml b/disable/ente-photos/pgadmin-es.yaml similarity index 100% rename from ente-photos/pgadmin-es.yaml rename to disable/ente-photos/pgadmin-es.yaml diff --git a/ente-photos/pgadmin.yaml b/disable/ente-photos/pgadmin.yaml similarity index 100% rename from ente-photos/pgadmin.yaml rename to disable/ente-photos/pgadmin.yaml diff --git a/ente-photos/postgres-values.yaml b/disable/ente-photos/postgres-values.yaml similarity index 100% rename from ente-photos/postgres-values.yaml rename to disable/ente-photos/postgres-values.yaml diff --git a/ente-photos/postgresql-es.yaml b/disable/ente-photos/postgresql-es.yaml similarity index 100% rename from ente-photos/postgresql-es.yaml rename to disable/ente-photos/postgresql-es.yaml diff --git a/mbgwp/default-pw-es.yaml b/mbgwp/default-pw-es.yaml new file mode 100644 index 0000000..70e5f10 --- /dev/null +++ b/mbgwp/default-pw-es.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: wordpress-secrets + namespace: default # Change to your desired namespace +spec: + refreshInterval: "15m" + secretStoreRef: + name: vault-backend + kind: ClusterSecretStore + target: + name: wordpress-credentials + creationPolicy: Owner + data: + - secretKey: wordpress-password + remoteRef: + key: kv/mbgwp + property: wordpress-password + - secretKey: smtp-password + remoteRef: + key: kv/mbgwp + property: smtp-password \ No newline at end of file