From 49d6366b021c0106e68a197c210a7e70c5998add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Schneider?= <56670304+soerenschneider@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:58:03 +0100 Subject: [PATCH] add gotify --- .../gotify/external-secret-gotify.yaml | 21 +++++++++++++++++++ .../gotify/kustomization.yaml | 20 ++++++++++++++++++ .../svc.ez.soeren.cloud/gotify/namespace.yaml | 7 +++++++ 3 files changed, 48 insertions(+) create mode 100644 clusters/svc.ez.soeren.cloud/gotify/external-secret-gotify.yaml create mode 100644 clusters/svc.ez.soeren.cloud/gotify/kustomization.yaml create mode 100644 clusters/svc.ez.soeren.cloud/gotify/namespace.yaml diff --git a/clusters/svc.ez.soeren.cloud/gotify/external-secret-gotify.yaml b/clusters/svc.ez.soeren.cloud/gotify/external-secret-gotify.yaml new file mode 100644 index 0000000..87aeec6 --- /dev/null +++ b/clusters/svc.ez.soeren.cloud/gotify/external-secret-gotify.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: gotify-db-credentials +spec: + refreshInterval: 12h + secretStoreRef: + name: "vault" + kind: "ClusterSecretStore" + target: + name: "gotify-db-credentials" + template: + engineVersion: v2 + data: + GOTIFY_DATABASE_CONNECTION: "gotify:{{ .password }}@tcp(dbs.ez.soeren.cloud:3306)/gotify?charset=utf8&parseTime=True&loc=Local&tls=true" + data: + - secretKey: "password" + remoteRef: + key: "secret/soeren.cloud/env/prod/mariadb/galera-prod/gotify/gotify" + property: "password" diff --git a/clusters/svc.ez.soeren.cloud/gotify/kustomization.yaml b/clusters/svc.ez.soeren.cloud/gotify/kustomization.yaml new file mode 100644 index 0000000..fa0e618 --- /dev/null +++ b/clusters/svc.ez.soeren.cloud/gotify/kustomization.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: "kustomize.config.k8s.io/v1beta1" +kind: "Kustomization" +namespace: "gotify" +resources: + - "namespace.yaml" + - "../../../apps/gotify" + - external-secret-gotify.yaml +components: + - "../../../apps/gotify/components/istio" + - "../../../apps/gotify/components/db-mysql" +patches: + - target: + kind: "VirtualService" + name: "gotify" + patch: |- + - op: "replace" + path: "/spec/hosts" + value: + - "gotify.svc.ez.soeren.cloud" diff --git a/clusters/svc.ez.soeren.cloud/gotify/namespace.yaml b/clusters/svc.ez.soeren.cloud/gotify/namespace.yaml new file mode 100644 index 0000000..b27d52e --- /dev/null +++ b/clusters/svc.ez.soeren.cloud/gotify/namespace.yaml @@ -0,0 +1,7 @@ +--- +kind: "Namespace" +apiVersion: "v1" +metadata: + name: "gotify" + labels: + name: "gotify"