Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5464

Zeppelin server needs to obtain the permission to create "configmaps" under k8s mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 0.9.1, 0.10.0
    • Kubernetes
    • None

    Description

      Since the spark interpreter pod need to create the resource "configmaps" (please refer to https://github.com/apache/zeppelin/pull/4165 for more information), Zeppelin Server also needs to obtain relative permissions when it is running inside k8s cluster. 

       

      Otherwise, it will generate such error:

      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.16.0.1/apis/rbac.authorization.k8s.io/v1/namespaces/default/roles. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. roles.rbac.authorization.k8s.io "spark-filwnx" is forbidden: user "system:serviceaccount:default:zeppelin-server" (groups=["system:serviceaccounts" "system:serviceaccounts:default" "system:authenticated"]) is attempting to grant RBAC permissions not currently held:
      {APIGroups:[""], Resources:["configmaps"], Verbs:["create" "get" "update" "list" "delete" "watch"]}.
      

      Attachments

        Activity

          People

            rickcheng rickcheng
            rickcheng rickcheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m