mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
Colons are not allowed in file names on Windows. Let's use something else instead. (Initially reported by @DenisBalan. This closes #549.)
34 lines
726 B
YAML
34 lines
726 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: jean.doe
|
|
namespace: users
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: user=jean.doe
|
|
rules:
|
|
- apiGroups: [ certificates.k8s.io ]
|
|
resources: [ certificatesigningrequests ]
|
|
verbs: [ create ]
|
|
- apiGroups: [ certificates.k8s.io ]
|
|
resourceNames: [ user=jean.doe ]
|
|
resources: [ certificatesigningrequests ]
|
|
verbs: [ get, create, delete, watch ]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: user=jean.doe
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: user=jean.doe
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: jean.doe
|
|
namespace: users
|
|
|