diff --git a/infrastructure/controllers/kustomization.yaml b/infrastructure/controllers/kustomization.yaml index 14bc91d..ad66983 100644 --- a/infrastructure/controllers/kustomization.yaml +++ b/infrastructure/controllers/kustomization.yaml @@ -5,3 +5,4 @@ resources: - metallb - cert-manager - traefik + - tailscale diff --git a/infrastructure/controllers/tailscale/kustomization.yaml b/infrastructure/controllers/tailscale/kustomization.yaml new file mode 100644 index 0000000..f53a9db --- /dev/null +++ b/infrastructure/controllers/tailscale/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - secret.enc.yaml + - repository.yaml + - release.yaml \ No newline at end of file diff --git a/infrastructure/controllers/tailscale/namespace.yaml b/infrastructure/controllers/tailscale/namespace.yaml new file mode 100644 index 0000000..34d68c8 --- /dev/null +++ b/infrastructure/controllers/tailscale/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: tailscale \ No newline at end of file diff --git a/infrastructure/controllers/tailscale/release.yaml b/infrastructure/controllers/tailscale/release.yaml new file mode 100644 index 0000000..8c4f154 --- /dev/null +++ b/infrastructure/controllers/tailscale/release.yaml @@ -0,0 +1,16 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: tailscale-operator + namespace: tailscale +spec: + interval: 12h + chart: + spec: + chart: tailscale-operator + version: "1.84.2" + sourceRef: + kind: HelmRepository + name: tailscale + namespace: tailscale + interval: 12h diff --git a/infrastructure/controllers/tailscale/repository.yaml b/infrastructure/controllers/tailscale/repository.yaml new file mode 100644 index 0000000..75ef004 --- /dev/null +++ b/infrastructure/controllers/tailscale/repository.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: tailscale + namespace: tailscale +spec: + interval: 24h + url: https://pkgs.tailscale.com/helmcharts \ No newline at end of file diff --git a/infrastructure/controllers/tailscale/secret.enc.yaml b/infrastructure/controllers/tailscale/secret.enc.yaml new file mode 100644 index 0000000..0b2daba --- /dev/null +++ b/infrastructure/controllers/tailscale/secret.enc.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Secret +metadata: + name: operator-oauth + namespace: tailscale +type: Opaque +stringData: + client_id: ENC[AES256_GCM,data:KHsstxc5cwGOEobTP9xEBrc=,iv:PVBquAcTbBF3EdtizkLLXwMt1umPLdBLNqpm3sIgSPk=,tag:JweKijGzSXJjchQCUmLqQA==,type:str] + client_secret: ENC[AES256_GCM,data:HizL9FRGG7fC3gzn3HcZ2pGOcHqGyRH9XPXhdozVZWI0pCvqhKEFWQOS4YppSX+oKm3EppF5U973GtwN4OPG,iv:TVlelya/LbSFYZowkTtYQAynnN5ZPGafjAOMrneYRu4=,tag:tDtQ8Tvn4T0fkWJp9JEolQ==,type:str] +sops: + age: + - recipient: age1jk99rtxq3ep2xj2w886cchddf7jypqpwkr3dszg5dzq93gn8cy9qyc786m + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxQVhmMDJGcjhVYkpnd3J1 + VjNob0xGKzBWUEgyN2lOWGtxZ0UrK1hMUDFJCklkSXRXOWhQa1h1SVh2Qnl4Zk1u + K3ZOQWtra3ZYM2ErdEl3cEZEK2duY00KLS0tIGdGK1VValU3L29vaXE3YnQ0aXZn + dUFJR2lBcEg5c3VlYkdha2paQ3lUSGsKA3vy63kL6L9JmbCxywkB4/hMCH2SiOiY + MDdlxAfa0Q4B0h9eD6hAmxgTqL/bywJ2NJEbR49bKBgtWg6EPRdIug== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2025-07-15T19:39:52Z" + mac: ENC[AES256_GCM,data:ElTCe78TWSf+gtk5/H2N+YFJz8L01XLcBLsS46b0sD3X325iewuPFY2+P3aYfqxQlYIa74ABo3/RwRFn8+0SeZwrFRSqDNlqqM+okS+qHMKJ9Ip8CPpCSj0x+GhU6hhPtbJEgFEvOauqnGn6GLZXISpGzi3YbTHNe28O8WBx1p4=,iv:YQ5qhBxYKmKjWLolIZ043AG55C0s8M1fcpy/zmtW10M=,tag:CFAIR3um84Yr5rl6ALDf8g==,type:str] + unencrypted_regex: ^(apiVersion|metadata|kind|type)$ + version: 3.10.2