Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1775

Admission cluster role doesn't have enough permission to run admission

    XMLWordPrintableJSON

Details

    Description

      Deploy the admission-controller with YAML files in yunikorn-k8shim:

      kubectl create namespace yunikorn
      kubectl apply -f deployments/scheduler/admission-controller-rbac.yaml --namespace yunikorn
      kubectl apply -f deployments/scheduler/admission-controller-secrets.yaml --namespace yunikorn
      kubectl apply -f deployments/scheduler/admission-controller.yaml --namespace yunikorn

      We will get errors in the yunikorn-admission-controller pod.

      E0531 12:36:25.095445       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.23.14/tools/ca
      che/reflector.go:167: Failed to watch *v1.Namespace: failed to list *v1.Namespace: namespa
      ces is forbidden: User "system:serviceaccount:yunikorn:yunikorn-admission-controller" cann
      ot list resource "namespaces" in API group "" at the cluster scope 

       

      Attachments

        Issue Links

          Activity

            People

              yangpoan PoAn Yang
              yangpoan PoAn Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified