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