SF
Size: a a a
SF
SF
SF
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: postgres
name: pod-create
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods", "services", "endpoints"]
verbs: ["get", "watch", "list", "create", "delete", "edit"]
apiVersion: rbac.authorization.k8s.io/v1
# This role binding allows "gitlab-runner" to all in the "planeta" namespace.
kind: RoleBinding
metadata:
name: user-postgres
namespace: postgres
subjects:
- kind: User
name: user # Name is case sensitive
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role #this must be Role or ClusterRole
name: pod-create # this must match the name of the Role or ClusterRole you wish to bind to
apiGroup: rbac.authorization.k8s.io
SF
SF
SF
A
SF
SF
A
V
A
V
V
SF
SF
V
SF
SF
SF
resources: ["pods", "services", "endpoints"]
verbs: ["get", "watch", "list", "create", "delete", "edit", "rsh"]