-
Notifications
You must be signed in to change notification settings - Fork 0
/
helmrelease.yaml
185 lines (173 loc) · 5.39 KB
/
helmrelease.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/app-template-3.2.1/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: headscale
namespace: headscale
spec:
chart:
spec:
chart: app-template
version: 3.2.1
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
namespace: flux-system
name: bjw-s
interval: 1h
driftDetection:
mode: enabled
values:
controllers:
headscale:
containers:
app:
image:
repository: ghcr.io/juanfont/headscale
tag: 0.22.3@sha256:aadf29a875bb2ffdf6579869e5759935f7a64b9fd19fcea9d5385c5d7220dc7b
pullPolicy: IfNotPresent
command: [headscale, serve]
env:
HEADSCALE_SERVER_URL: https://${app_url}
HEADSCALE_LISTEN_ADDR: 0.0.0.0:8080
HEADSCALE_METRICS_LISTEN_ADDR: 0.0.0.0:9090
HEADSCALE_PRIVATE_KEY_PATH: /etc/headscale/private.key
HEADSCALE_NOISE: "{}"
HEADSCALE_NOISE_PRIVATE_KEY_PATH: /etc/headscale/noise_private.key
HEADSCALE_IP_PREFIXES: 100.64.0.0/10 fd7a:115c:a1e0::/48
HEADSCALE_DERP_URLS: https://controlplane.tailscale.com/derpmap/default
HEADSCALE_DERP_AUTO_UPDATE_ENABLED: "true"
HEADSCALE_DERP_UPDATE_FREQUENCY: "24h"
HEADSCALE_EPHEMERAL_NODE_INACTIVITY_TIMEOUT: "30m"
HEADSCALE_DNS_CONFIG_NAMESERVERS: "1.1.1.1 1.0.0.1"
HEADSCALE_DNS_CONFIG_MAGIC_DNS: "true"
HEADSCALE_DNS_CONFIG_BASE_DOMAIN: ${base_domain}
HEADSCALE_OIDC_ISSUER: ${oidc_issuer}
HEADSCALE_OIDC_CLIENT_ID: ${oidc_client_id}
HEADSCALE_OIDC_CLIENT_SECRET: ${oidc_client_secret}
HEADSCALE_DB_TYPE: postgres
HEADSCALE_DB_HOST: postgresql-rw
HEADSCALE_DB_PORT: "5432"
HEADSCALE_DB_SSL: "true"
HEADSCALE_DB_NAME: headscale
HEADSCALE_DB_USER: headscale
HEADSCALE_DB_PASS:
secretKeyRef:
name: postgresql-app
key: password
probes:
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 5
liveness:
enabled: true
readiness:
enabled: true
securityContext:
readOnlyRootFilesystem: true
pod:
terminationGracePeriodSeconds: 3
labels:
policy.gabe565.com/egress-namespace: "true"
policy.gabe565.com/egress-world: "true"
policy.gabe565.com/ingress-ingress: "true"
policy.gabe565.com/ingress-prometheus: "true"
ui:
strategy: RollingUpdate
containers:
app:
image:
repository: ghcr.io/gurucomputing/headscale-ui
tag: 2024.02.24-beta1@sha256:4c618a7b6e8b32f5ef6af3c7e6936c63e8568ad9ae8d190dafb2551a64ff40a2
pullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: true
pod:
terminationGracePeriodSeconds: 3
labels:
policy.gabe565.com/ingress-ingress: "true"
service:
headscale:
controller: headscale
ports:
http:
primary: true
port: 8080
metrics:
port: 9090
ui:
controller: ui
ports:
http:
port: 80
persistence:
config:
enabled: true
type: secret
name: headscale-config
advancedMounts:
headscale:
app:
- path: /etc/headscale/config.yaml
subPath: config.yaml
- path: /etc/headscale/private.key
subPath: private.key
- path: /etc/headscale/noise_private.key
subPath: noise_private.key
tmp:
enabled: true
type: emptyDir
advancedMounts:
headscale:
app:
- path: /var/run/headscale
subPath: run
ui:
app:
- path: /data
subPath: data
- path: /home/appuser/.local
subPath: .local
ingress:
headscale:
enabled: true
hosts:
- host: ${app_url}
paths:
- path: /
service:
identifier: headscale
port: http
tls: &tls
- secretName: ${certificate_name}
hosts:
- ${app_url}
ui:
enabled: true
hosts:
- host: ${app_url}
paths:
- path: /web
service:
identifier: ui
port: http
tls: *tls
secrets:
config:
enabled: true
stringData:
config.yaml: "{}"
private.key: ${private_key}
noise_private.key: ${noise_private_key}
serviceMonitor:
main:
enabled: true
serviceName: headscale
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s