blob: d1f5a7c326a8f0be5291d86db41b87f803507c80 [file] [log] [blame]
Giorgi Lekveishvili81ba75e2023-06-15 21:14:21 +04001apiVersion: headscale.dodo.cloud/v1
2kind: HeadscaleUser
3metadata:
4 name: {{ .Values.username }}
5 namespace: {{ .Release.Namespace }}
6spec:
Giorgi Lekveishvili2a1c3522023-06-21 14:15:08 +04007 headscaleAddress: {{ .Values.apiServer }}
Giorgi Lekveishvili81ba75e2023-06-15 21:14:21 +04008 name: {{ .Values.username }}
9 preAuthKey:
10 enabled: true
11 secretName: {{ .Values.preAuthKeySecret }}
12---
Giorgi Lekveishvili2c1253c2023-06-13 12:06:42 +040013apiVersion: apps/v1
14kind: Deployment
15metadata:
16 name: tailscale
17 namespace: {{ .Release.Namespace }}
18spec:
19 selector:
20 matchLabels:
21 app: tailscale
22 replicas: 1
23 template:
24 metadata:
25 labels:
26 app: tailscale
27 spec:
Giorgi Lekveishvili2c1253c2023-06-13 12:06:42 +040028 containers:
29 - name: tailscale
30 image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
31 imagePullPolicy: {{ .Values.image.pullPolicy }}
32 securityContext:
33 privileged: true
34 capabilities:
35 add:
36 - NET_ADMIN
37 env:
38 - name: TS_KUBE_SECRET
Giorgi Lekveishvilicb64b162023-06-16 11:51:00 +040039 value: {{ .Values.preAuthKeySecret }}
Giorgi Lekveishvili81ba75e2023-06-15 21:14:21 +040040 - name: TS_HOSTNAME
41 value: {{ .Values.hostname }}
giof6ad2982024-08-23 17:42:49 +040042 {{- if .Values.ipSubnet }}
Giorgi Lekveishvili81ba75e2023-06-15 21:14:21 +040043 - name: TS_ROUTES
44 value: {{ .Values.ipSubnet }}
giof6ad2982024-08-23 17:42:49 +040045 {{- end }}
Giorgi Lekveishvili2c1253c2023-06-13 12:06:42 +040046 - name: TS_EXTRA_ARGS
Giorgi Lekveishvili117694a2023-06-16 11:35:07 +040047 value: --login-server={{ .Values.loginServer }}