diff --git a/deployments/tailscale/operator/deployment.yaml b/deployments/tailscale/operator/deployment.yaml index e3fc711..0e2c87d 100644 --- a/deployments/tailscale/operator/deployment.yaml +++ b/deployments/tailscale/operator/deployment.yaml @@ -23,13 +23,22 @@ spec: - name: POD_NAME valueFrom: fieldRef: + apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: + apiVersion: v1 fieldPath: metadata.namespace - - name: TS_AUTH_KEY - valueFrom: - secretKeyRef: - name: tailscale-auth - key: TS_AUTH_KEY \ No newline at end of file + - 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