---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: tailscale
namespace: default
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
resourceNames:
- tailscale-state
- get
- update
- patch
kind: RoleBinding
subjects:
- kind: ServiceAccount
roleRef:
apiGroup: rbac.authorization.k8s.io
apiVersion: v1
kind: ServiceAccount