-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwg-access-server_argocd_app.yaml
83 lines (81 loc) · 2.27 KB
/
wg-access-server_argocd_app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
# First sync wave done in parallel with creating secrets. Must be BEFORE
# wg-access-server so that wg-access-server persists it's data between upgrades
# Sync policy is set to ApplyOutOfSyncOnly=true to create the volume initially
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wg-access-server-persistence
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: wireguard
source:
repoURL: https://github.com/small-hack/argocd-apps.git
path: wg-access-server/manifests/persistence/
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
selfHeal: true
# First sync wave because we need secrets for wg-access-server, so it has to be
# before wg-access-server so it has secrets for all its credentials.
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wg-access-server-external-secrets
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: wireguard
source:
repoURL: https://github.com/small-hack/argocd-apps.git
path: wg-access-server/external_secrets/
syncPolicy:
syncOptions:
- Replace=true
automated:
prune: true
selfHeal: true
---
# webapp is deployed 2nd because we need secrets
# chart: https://freifunkMUC.github.io/wg-access-server-chart/
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wg-access-server-web-app
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: wireguard
sources:
# official wg-access-server helm repo
- repoURL: 'https://freifunkMUC.github.io/wg-access-server-chart/'
chart: wg-access-server
targetRevision: 0.13.0
helm:
valueFiles:
- $values/wg-access-server/values/values.yaml
# our values.yaml file locally
- repoURL: 'https://github.com/small-hack/argocd-apps.git'
targetRevision: main
ref: values
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true