Skip to content

Commit 4cb0e32

Browse files
update hermes and gotify integration
1 parent 3c1562c commit 4cb0e32

File tree

5 files changed

+38
-1
lines changed

5 files changed

+38
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
apiVersion: "kustomize.config.k8s.io/v1alpha1"
3+
kind: "Component"
4+
patches:
5+
- target:
6+
kind: "NetworkPolicy"
7+
name: "gotify"
8+
patch: |-
9+
- op: "add"
10+
path: "/spec/ingress/0/from/-"
11+
value:
12+
namespaceSelector:
13+
matchLabels:
14+
kubernetes.io/metadata.name: "hermes"
15+
podSelector:
16+
matchLabels:
17+
app: "hermes"

clusters/svc.pt.soeren.cloud/gotify/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ resources:
99
components:
1010
- "../../../apps/gotify/components/istio"
1111
- "../../../apps/gotify/components/db-mysql"
12+
- "../../../apps/gotify/components/networkpolicy-hermes"
1213
patches:
1314
- target:
1415
kind: "VirtualService"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: external-secrets.io/v1beta1
3+
kind: ExternalSecret
4+
metadata:
5+
name: hermes-tokens
6+
spec:
7+
refreshInterval: 12h
8+
secretStoreRef:
9+
name: "vault"
10+
kind: "ClusterSecretStore"
11+
target:
12+
name: "hermes-tokens"
13+
creationPolicy: "Owner"
14+
data:
15+
- secretKey: "gotify"
16+
remoteRef:
17+
key: "secret/soeren.cloud/env/prod/hermes"
18+
property: "gotify"

clusters/svc.pt.soeren.cloud/hermes/hermes-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ awtrix:
1313
dead_letter_queue: "gotify"
1414
gotify:
1515
- uri: "gotify"
16-
token_file: "/etc/hermes/gotify_token"
16+
token_file: "/etc/hermes/gotify"
1717
addr: "http://gotify.gotify"

clusters/svc.pt.soeren.cloud/hermes/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ components:
99
resources:
1010
- "namespace.yaml"
1111
- "../../../apps/hermes"
12+
- "external-secret-hermes.yaml"
1213
configMapGenerator:
1314
- name: "hermes-config"
1415
files:

0 commit comments

Comments
 (0)