Details
-
Bug
-
Resolution: User Error
-
Major
-
None
-
1.1.0
-
None
Description
Summary: Cannot install operator 1.1 for openshift.
Download the files for operator 1.1, follow the following steps
oc create -f crd.yaml
oc create -f cluster-role.yaml
oc create serviceaccount couchbase-operator --namespace rd-k8s
oc create rolebinding couchbase-operator --clusterrole couchbase-operator --serviceaccount rd-k8s:couchbase-operator
oc adm policy add-scc-to-user anyuid system:serviceaccount:rd-k8s:couchbase-operator
oc create secret docker-registry rh-catalog --docker-server=registry.connect.redhat.com --docker-username=ramdhakne --docker-password='xxxxxx' --docker-email='myemail@xxx.com'
oc secrets add serviceaccount/couchbase-operator secrets/rh-catalog --for=pull
oc secrets add serviceaccount/default secrets/rh-catalog --for=pull
oc create -f operator.yaml
operator does not come up, and gives error
time="2019-03-09T20:56:32Z" level=error msg="Initialization failed: fail to create CRD: customresourcedefinitions.apiextensions.k8s.io is forbidden: User \"system:serviceaccount:default:couchbase-operator\" cannot create customresourcedefinitions.apiextensions.k8s.io at the cluster scope: no RBAC policy matched" module=controller
|