The operator assumes that certain roles and role bindings are created on the Kubernetes cluster. The operator installation scripts create these, and the operator verifies that they are correct when the cluster starts up. This document lists the RBAC definitions that are created.
The general design goal is to provide the operator with the minimum amount of permissions that it requires, and to favor built-in roles over custom roles, where it make sense to do so.
Cluster role | Resources | Verbs | Notes |
---|---|---|---|
NAMESPACE-weblogic-operator-clusterrole-general |
namespaces, persistentvolumes | get, list, watch | 1 |
customresourcedefinitions in API group apiextensions.k8s.io | get, list, watch, create, update, patch, delete, deletecollection | ||
domains in API group weblogic.oracle | get, list, watch, update, patch | ||
Ingresses in API group extensions | get, list, watch, create, update, patch, delete, deletecollection | ||
NAMESPACE-weblogic-operator-clusterrole-nonresource |
nonResourceURLs: ["/version/*"] | get | 1 |
NAMESPACE-weblogic-operator-clusterrole-namespace |
secrets, persistentvolumeclaims | get, list, watch | 2 |
services, pods, networkpolicies | get, list, watch, create, update, patch, delete, deletecollection | ||
NAMESPACE-weblogic-operator-clusterrolebinding-discovery |
system:discovery in API group rbac.authorization.k8s.io | 1 | |
NAMESPACE-weblogic-operator-clusterrolebinding-auth-delegator |
system:auth-delegator in API group rbac.authorization.k8s.io | 1 |
Notes:
- This cluster role is assigned to the operator’s service account in the operator’s namespace. The uppercase text
NAMESPACE
in the cluster role name is replaced with the operator’s namespace. - This cluster role is assigned to the operator’s service account in each of the “target namespaces”; that is, each namespace that the operator is configured to manage.