2022-12-12 19:15:34 +00:00
|
|
|
# This file is not a complete manifest, it's a skeleton that the operator embeds
|
|
|
|
# at build time and then uses to construct Tailscale proxy pods.
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
2023-08-24 19:18:17 +00:00
|
|
|
metadata: {}
|
2022-12-12 19:15:34 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
deletionGracePeriodSeconds: 10
|
|
|
|
spec:
|
|
|
|
serviceAccountName: proxies
|
|
|
|
initContainers:
|
|
|
|
- name: sysctler
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
command: ["/bin/sh"]
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- sysctl -w net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1m
|
|
|
|
memory: 1Mi
|
|
|
|
containers:
|
|
|
|
- name: tailscale
|
|
|
|
imagePullPolicy: Always
|
|
|
|
env:
|
|
|
|
- name: TS_USERSPACE
|
|
|
|
value: "false"
|
|
|
|
- name: TS_AUTH_ONCE
|
|
|
|
value: "true"
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|