feat: Add twingate

This commit is contained in:
Tony Du 2025-02-13 19:54:28 -08:00
parent 11c5f27bc7
commit ae22b0aee8
5 changed files with 71 additions and 0 deletions

View File

@ -7,3 +7,4 @@ resources:
- ghost
- authentik
- ingressroutes
# - twingate

View File

@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- repository.yaml
- secrets.yaml
- release.yaml

View File

@ -0,0 +1,32 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: twingate
namespace: default
spec:
interval: 10m0s
releaseName: twingate-rampant-eagle
targetNamespace: default
chart:
spec:
chart: connector
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: twingate
namespace: flux-system
valuesFrom:
- kind: Secret
name: twingate-creds
valuesKey: access-token
targetPath: connector.accessToken
- kind: Secret
name: twingate-creds
valuesKey: refresh-token
targetPath: connector.refreshToken
values:
connector:
network: mnke
# accessToken:
# refreshToken:

View File

@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: twingate
namespace: flux-system
spec:
interval: 10m0s
url: https://twingate.github.io/helm-charts

View File

@ -0,0 +1,21 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: twingate-creds
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
name: infisical
target:
name: twingate-creds
data:
- secretKey: access-token
remoteRef:
key: twingate-access-token
- secretKey: refresh-token
remoteRef:
key: twingate-refresh-token