CouchbaseRoleBinding Resource
The Couchbase Autonomous Operator operates on CouchbaseCluster
objects.
CouchbaseRoleBinding
resources are analogous to Kubernetes RoleBinding
resources.
The following YAML shows all possible fields that may be configured for a CouchbaseRoleBinding
.
This configuration may not be valid and is only for illustrative purposes.
apiVersion: couchbase.com/v2
kind: CouchbaseRoleBinding
metadata:
name: my-role-binding
spec:
subjects:
- kind: CouchbaseUser
name: my-user
roleRef:
kind: CouchbaseGroup
name: my-group
Top-Level Definitions
The following are relevant generic parameters that can be defined:
apiVersion: couchbase.com/v2
kind: CouchbaseRoleBinding
metadata:
name: my-cluster
apiVersion
The apiVersion defines which version of the resource this configuration refers to.
Field rules: This field is required and must be set to
couchbase.com/v2
spec
The following are parameters that may be set on the rolebinding:
spec:
subjects:
- kind: CouchbaseUser
name: my-user
roleRef:
kind: CouchbaseGroup
name: my-group
spec.subjects[].kind
This defines the the type of resource to apply the role to.
Field rules: This field is required and must be either
CouchbaseUser
orCouchbaseGroup
.
spec.subjects[].name
This defines the the name of the resource to apply the role to.
Field rules: This field is required and must be the name of an existing
CouchbaseUser
orCouchbaseGroup
.