Add tailscale
This commit is contained in:
parent
a971a50fbe
commit
ee767edb95
4 changed files with 65 additions and 0 deletions
5
charts/tailscale/Chart.yaml
Normal file
5
charts/tailscale/Chart.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: tailscale-config
|
||||||
|
description: Tailscale operator ExternalSecret for OAuth credentials
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
25
charts/tailscale/templates/external-secret.yaml
Normal file
25
charts/tailscale/templates/external-secret.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: operator-oauth
|
||||||
|
namespace: tailscale
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: aws-secrets-manager
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: operator-oauth
|
||||||
|
template:
|
||||||
|
data:
|
||||||
|
client_id: "{{ .client_id }}"
|
||||||
|
client_secret: "{{ .client_secret }}"
|
||||||
|
data:
|
||||||
|
- secretKey: client_id
|
||||||
|
remoteRef:
|
||||||
|
key: dumpnet
|
||||||
|
property: tailscale.oauth_client_id
|
||||||
|
- secretKey: client_secret
|
||||||
|
remoteRef:
|
||||||
|
key: dumpnet
|
||||||
|
property: tailscale.oauth_client_secret
|
||||||
5
charts/tailscale/values.yaml
Normal file
5
charts/tailscale/values.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Leave oauth block empty - operator uses precreated 'operator-oauth' secret
|
||||||
|
# created by ExternalSecret in charts/tailscale/templates/
|
||||||
|
oauth:
|
||||||
|
clientId: ""
|
||||||
|
clientSecret: ""
|
||||||
30
manifests/cluster/tailscale.yaml
Normal file
30
manifests/cluster/tailscale.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: tailscale
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: https://forge.keane.sh/ian/dumpnet-argo.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://pkgs.tailscale.com/helmcharts
|
||||||
|
chart: tailscale-operator
|
||||||
|
targetRevision: "*"
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/charts/tailscale/values.yaml
|
||||||
|
- repoURL: https://forge.keane.sh/ian/dumpnet-argo.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: charts/tailscale
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: tailscale
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue