49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: tailscale
|
|
labels:
|
|
app.kubernetes.io/name: tailscale-operator
|
|
app.kubernetes.io/part-of: infrastructure
|
|
management: gitops
|
|
managed-by: orion
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tailscale-operator
|
|
namespace: tailscale
|
|
labels:
|
|
app.kubernetes.io/name: tailscale-operator
|
|
app.kubernetes.io/part-of: infrastructure
|
|
management: gitops
|
|
managed-by: orion
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: tailscale-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: tailscale-operator
|
|
spec:
|
|
serviceAccountName: tailscale-operator
|
|
containers:
|
|
- name: operator
|
|
image: ghcr.io/tailscale/k8s-operator:1.78.1
|
|
env:
|
|
- name: TS_AUTH_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: tailscale-auth
|
|
key: TS_AUTH_KEY
|
|
- name: TS_USERSPACE
|
|
value: "true"
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 100m
|
|
memory: 128Mi |