adding tailscale
This commit is contained in:
parent
2136232bd1
commit
5645cad7cb
6 changed files with 43 additions and 0 deletions
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/tailscale.com/proxyclass_v1alpha1.json
|
||||||
apiVersion: tailscale.com/v1alpha1
|
apiVersion: tailscale.com/v1alpha1
|
||||||
kind: ProxyClass
|
kind: ProxyClass
|
||||||
metadata:
|
metadata:
|
|
@ -10,6 +10,11 @@ spec:
|
||||||
name: onepassword-connect
|
name: onepassword-connect
|
||||||
target:
|
target:
|
||||||
name: k8s-operator-oauth-secret
|
name: k8s-operator-oauth-secret
|
||||||
|
template:
|
||||||
|
engineVersion: v2
|
||||||
|
data:
|
||||||
|
OAUTH_CLIENT_ID: "{{ .k8s-theshire-oauth-clientid }}"
|
||||||
|
OAUTH_CLIENT_SECRET: "{{ .k8s-theshire-oauth-clientsecret }}"
|
||||||
dataFrom:
|
dataFrom:
|
||||||
- extract:
|
- extract:
|
||||||
key: k8s-operator-oauth
|
key: k8s-operator-oauth
|
|
@ -20,6 +20,15 @@ spec:
|
||||||
crds: CreateReplace
|
crds: CreateReplace
|
||||||
upgrade:
|
upgrade:
|
||||||
crds: CreateReplace
|
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:
|
values:
|
||||||
operatorConfig:
|
operatorConfig:
|
||||||
defaultTags:
|
defaultTags:
|
||||||
|
|
|
@ -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
|
Reference in a new issue