diff --git a/tailscale/tailscale-operator/deployment.yaml b/tailscale/tailscale-operator/deployment.yaml new file mode 100644 index 0000000..ac342eb --- /dev/null +++ b/tailscale/tailscale-operator/deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tailscale-operator + namespace: tailscale + labels: + app: 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/k8s-operator:v1.78.3 + env: + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: TS_CLIENT_ID_FILE + value: /etc/tailscale/oauth/client-id + - name: TS_CLIENT_SECRET_FILE + value: /etc/tailscale/oauth/client-secret + volumeMounts: + - name: oauth-secret + mountPath: /etc/tailscale/oauth + readOnly: true + volumes: + - name: oauth-secret + secret: + secretName: tailscale-operator-secret