67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tailscale-operator
|
|
namespace: tailscale
|
|
labels:
|
|
app.kubernetes.io/name: tailscale-operator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: tailscale-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: tailscale-operator
|
|
spec:
|
|
serviceAccountName: tailscale-operator
|
|
containers:
|
|
- name: operator
|
|
image: ghcr.io/tailscale/kubernetes-operator:latest
|
|
env:
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: TAILSCALE_API_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: tailscale-operator
|
|
key: client-id
|
|
- name: TAILSCALE_API_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: tailscale-operator
|
|
key: client-secret
|
|
- name: TAILSCALE_AUTH_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: tailscale-operator
|
|
key: auth-key
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30 |