Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-560

Cluster role example doesn't allow you to use PVs

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Blocker
    • 1.0.0
    • 1.0.0
    • documentation
    • None

    Description

      The current cluster-role.yaml file does not allow the operator to correctly use PVs:

      time="2018-08-29T00:23:35Z" level=info msg="Creating headless service for data nodes" cluster-name=cb-example module=cluster
      time="2018-08-29T00:23:35Z" level=info msg="Creating a pod (cb-example-0000) running Couchbase enterprise-5.5.1" cluster-name=cb-example module=cluster
      time="2018-08-29T00:23:35Z" level=info msg="deleted pod (cb-example-0000)" cluster-name=cb-example module=cluster
      time="2018-08-29T00:23:35Z" level=error msg="Cluster setup failed: fail to create member's pod (cb-example-0000): storageclasses.storage.k8s.io \"gp2\" is forbidden: User \"system:serviceaccount:default:couchbase-operator\" cannot get storageclasses.storage.k8s.io at the cluster scope" cluster-name=cb-example module=cluster
      

      Looks like the examples in the 'docs' folder are out of date and needs to be better sync'ed up with https://github.com/couchbase/couchbase-operator/blob/master/example/rbac/cluster-role-template.yaml.

      Attachments

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            matt.carabine Matt Carabine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty