Skip to content

Commit

Permalink
chore: add proxy class for tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed Oct 23, 2024
1 parent ae546a4 commit 9f79d4c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
spec:
annotations:
tailscale.com/hostname: "kashmc"
labels:
tailscale.com/proxy-class: "tun-access"
type: LoadBalancer
loadBalancerClass: tailscale
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./proxyclass.yaml
18 changes: 18 additions & 0 deletions kubernetes/main/apps/networking/tailscale/app/proxyclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: tailscale.com/v1alpha1
kind: ProxyClass
metadata:
name: tun-access
spec:
statefulSet:
pod:
tailscaleContainer:
resources:
limits:
kernel.org/tun: "1"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- NET_ADMIN

0 comments on commit 9f79d4c

Please sign in to comment.