File tree Expand file tree Collapse file tree 7 files changed +193
-104
lines changed
Expand file tree Collapse file tree 7 files changed +193
-104
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : kustomize.config.k8s.io/v1beta1
3+ kind : Kustomization
4+ resources :
5+ - namespace.yaml
6+ - tailscale-helmrepo.yaml
7+ - tailscale-helmrelease.yaml
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : v1
3+ kind : Namespace
4+ metadata :
5+ name : tailscale
6+ labels :
7+ name : tailscale
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : helm.toolkit.fluxcd.io/v2
3+ kind : HelmRelease
4+ metadata :
5+ name : tailscale
6+ namespace : flux-system
7+ labels :
8+ app : tailscale
9+ spec :
10+ interval : 10m
11+ timeout : 5m
12+ targetNamespace : tailscale
13+ chart :
14+ spec :
15+ chart : tailscale-operator
16+ sourceRef :
17+ kind : HelmRepository
18+ name : tailscale
19+ namespace : flux-system
20+ interval : 5m0s
21+ install :
22+ createNamespace : true
23+ remediation :
24+ retries : 3
25+ upgrade :
26+ remediation :
27+ retries : 3
28+ valuesFrom :
29+ - kind : Secret
30+ name : tailscale-oauth
31+ targetPath : oauth.clientId
32+ valuesKey : oauth.clientId
33+ - kind : Secret
34+ name : tailscale-oauth
35+ targetPath : oauth.clientSecret
36+ valuesKey : oauth.clientSecret
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : source.toolkit.fluxcd.io/v1
3+ kind : HelmRepository
4+ metadata :
5+ name : tailscale
6+ namespace : flux-system
7+ spec :
8+ interval : 1h
9+ url : https://pkgs.tailscale.com/helmcharts
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ datadog_logs_enabled: true
5757datadog_process_agent_enabled : true
5858datadog_apm_enabled : false
5959
60+ # Tailscale operator configuration
61+ tailscale_operator_oauth_client_id : " {{ vault_tailscale_operator_oauth_client_id }}"
62+ tailscale_operator_oauth_client_secret : " {{ vault_tailscale_operator_oauth_client_secret }}"
63+
6064# Omni configuration
6165omni_oidc_client_secret : " {{ vault_omni_oidc_client_secret }}"
6266omni_etcd_encryption_key : " {{ vault_omni_etcd_encryption_key }}"
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 202202 no_log : true
203203 when : omni_oidc_check.rc != 0
204204
205+ - name : Create tailscale namespace if not exists
206+ shell : kubectl create namespace tailscale --dry-run=client -o yaml | kubectl apply -f -
207+ changed_when : false
208+
209+ - name : Check if tailscale OAuth secret exists
210+ shell : kubectl -n flux-system get secret tailscale-oauth
211+ register : tailscale_oauth_check
212+ failed_when : false
213+ changed_when : false
214+
215+ - name : Create tailscale OAuth secret
216+ shell : |
217+ kubectl -n flux-system create secret generic tailscale-oauth \
218+ --from-literal=oauth.clientId="{{ tailscale_operator_oauth_client_id }}" \
219+ --from-literal=oauth.clientSecret="{{ tailscale_operator_oauth_client_secret }}"
220+ no_log : true
221+ when : tailscale_oauth_check.rc != 0
222+
205223- name : Create openclaw namespace if not exists
206224 shell : kubectl create namespace openclaw --dry-run=client -o yaml | kubectl apply -f -
207225 changed_when : false
You can’t perform that action at this time.
0 commit comments