Spinnaker with Kubernetes, restricted access to only namespace


#1

Hi Team,

I am trying to setup spinnaker with kubernetes and getting error: user cannot list namespace.

I dont have access to list name space in cluster scope. Is it possible to setup and apply hal configuration without access to list namespaces at cluster scope? if yes, please let me know the steps.

Below I mention the command out for reference.

hal deploy apply

  • Get current deployment
    Success
  • Prep deployment
    Failure
    Problems in default.provider.kubernetes.my-k8s-account:
    ! ERROR Unable to communicate with your Kubernetes cluster: Failure
    executing: GET at: https:///api/v1/namespaces. Message:
    Forbidden! User apc doesn’t have permission. namespaces is forbidden: User
    “system:anonymous” cannot list namespaces at the cluster scope…
    ? Unable to authenticate with your Kubernetes cluster. Try using
    kubectl to verify your credentials.

  • Failed to prep Spinnaker deployment


$ kubectl get ns
No resources found.
Error from server (Forbidden): namespaces is forbidden: User “ds:uid:2319639648” cannot list namespaces at the cluster scope


Regards,
Ajaz