adding tailscale

This commit is contained in:
Joseph Hanson 2025-01-06 00:39:46 -06:00
parent 2136232bd1
commit 5645cad7cb
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
6 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,14 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/tailscale.com/connector_v1alpha1.json
apiVersion: tailscale.com/v1alpha1
kind: Connector
metadata:
name: connector
spec:
hostname: theshire-connector
exitNode: true
proxyClass: kernel-org-tun
subnetRouter:
advertiseRoutes:
- "10.5.0.0/16" # load-balancers
- "10.4.0.0/16" # services

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./connector.yaml
- ./proxyclass.yaml

View file

@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/tailscale.com/proxyclass_v1alpha1.json
apiVersion: tailscale.com/v1alpha1
kind: ProxyClass
metadata:

View file

@ -10,6 +10,11 @@ spec:
name: onepassword-connect
target:
name: k8s-operator-oauth-secret
template:
engineVersion: v2
data:
OAUTH_CLIENT_ID: "{{ .k8s-theshire-oauth-clientid }}"
OAUTH_CLIENT_SECRET: "{{ .k8s-theshire-oauth-clientsecret }}"
dataFrom:
- extract:
key: k8s-operator-oauth

View file

@ -20,6 +20,15 @@ spec:
crds: CreateReplace
upgrade:
crds: CreateReplace
valuesFrom:
- kind: Secret
name: k8s-operator-oauth-secret
valuesKey: OAUTH_CLIENT_ID
targetPath: oauth.clientId
- kind: Secret
name: k8s-operator-oauth-secret
valuesKey: OAUTH_CLIENT_SECRET
targetPath: oauth.clientSecret
values:
operatorConfig:
defaultTags:

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml