-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheadscale_argocd_app.yaml
99 lines (93 loc) · 2.64 KB
/
headscale_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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
# has to be after secrets, but before web-app
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: headscale-server
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: default
destination:
server: 'https://kubernetes.default.svc'
namespace: headscale
source:
repoURL: 'https://charts.gabe565.com'
chart: headscale
targetRevision: 0.15.0
helm:
values: |
env:
HEADSCALE_DNS_CONFIG_BASE_DOMAIN: buildstars.local
TZ: Europe/Amsterdam
# HEADSCALE_OIDC_ISSUER: ""
# HEADSCALE_OIDC_CLIENT_ID: ""
# HEADSCALE_OIDC_CLIENT_SECRET: ""
sidecars:
ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
ports:
- name: http
containerPort: 80
service:
main:
ports:
ui:
port: 80
ingress:
main:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-develop
nginx.ingress.kubernetes.io/rewrite-target: /
tls:
- hosts:
- headscale.buildstars.online
secretName: headscale-tls
rules:
- host: headscale.buildstars.online
http:
paths:
- path: /
pathType: Prefix
persistence:
# -- Configure persistence settings for the chart under this key.
# @default -- See [values.yaml](./values.yaml)
config:
enabled: true
mountPath: /etc/headscale
retain: true
storageClass: "local-path"
accessMode: ReadWriteOnce
size: 1Gi
postgresql:
enabled: false
auth:
database: headscale
postgresPassword: changeme
primary:
persistence:
enabled: false
# storageClass: ""
# size: 8Gi
serviceMonitor:
main:
# -- Enables or disables the serviceMonitor.
enabled: false
# -- Configures the endpoints for the serviceMonitor.
# @default -- See [values.yaml](./values.yaml)
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 30s
scrapeTimeout: 10s
syncPolicy:
syncOptions:
- CreateNamespace=true
- Replace=false
automated:
selfHeal: false
prune: true