blob: 9664e51ef22e64f85878519aee6ebaab816d213b [file] [log] [blame]
Giorgi Lekveishvili524485f2023-06-13 13:29:04 +04001apiVersion: helm.toolkit.fluxcd.io/v2beta1
2kind: HelmRelease
3metadata:
4 name: namespaces-tailscale-proxy
5 namespace: {{ .Global.Id }}
6spec:
7 chart:
8 spec:
9 chart: charts/namespaces
10 sourceRef:
11 kind: GitRepository
12 name: pcloud
13 namespace: {{ .Global.Id }}
14 interval: 1m0s
15 values:
16 pcloudInstanceId: {{ .Global.Id }}
17 namespacePrefix: {{ .Global.NamespacePrefix }}
18 namespaces:
19 - tailscale-proxy
20---
21apiVersion: helm.toolkit.fluxcd.io/v2beta1
22kind: HelmRelease
23metadata:
24 name: tailscale-proxy
25 namespace: {{ .Global.Id }}
26spec:
27 targetNamespace: {{ .Global.NamespacePrefix }}tailscale-proxy
28 dependsOn:
29 - name: namespaces-tailscale-proxy
30 namespace: {{ .Global.Id }}
Giorgi Lekveishvili0ccd1482023-06-21 15:02:24 +040031 - name: headscale
32 namespace: {{ .Global.Id }}
Giorgi Lekveishvili524485f2023-06-13 13:29:04 +040033 chart:
34 spec:
35 chart: charts/tailscale
36 sourceRef:
37 kind: GitRepository
38 name: pcloud
39 namespace: {{ .Global.Id }}
40 interval: 1m0s
41 values:
42 hostname: {{ .Global.PCloudEnvName }}-{{ .Global.Id }}-internal-proxy
Giorgi Lekveishvili0ccd1482023-06-21 15:02:24 +040043 apiServer: http://headscale-api.{{ .Global.Id }}-app-headscale.svc.cluster.local
Giorgi Lekveishvili524485f2023-06-13 13:29:04 +040044 loginServer: https://headscale.{{ .Global.Domain }} # TODO(gio): take headscale subdomain from configuration
Giorgi Lekveishvilie34a0612023-06-16 13:56:10 +040045 ipSubnet: {{ .Values.IPSubnet }}
46 username: {{ .Values.Username }}
47 preAuthKeySecret: headscale-preauth-key