Skip to content

Commit

Permalink
add gotify
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Oct 16, 2024
1 parent 5eb8c3a commit 49d6366
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions clusters/svc.ez.soeren.cloud/gotify/external-secret-gotify.yaml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions clusters/svc.ez.soeren.cloud/gotify/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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"
7 changes: 7 additions & 0 deletions clusters/svc.ez.soeren.cloud/gotify/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
kind: "Namespace"
apiVersion: "v1"
metadata:
name: "gotify"
labels:
name: "gotify"

0 comments on commit 49d6366

Please sign in to comment.