Error: Upgrade failed: the server has asked for the client to provide credentials (get configmaps)

9/2/2019

When deploying an application using Kubernetes I get the following exception:

Error: Upgrade failed: the server has asked for the client to provide credentials (get configmaps)

Can someone tell me about which credentials is rancher complaining, applications credentials or helm and tiller credentials?

-- Bionix1441
kubernetes
rancher

1 Answer

9/3/2019

It looks like problem with Using RBAC Authorization or RoleBinding and ClusterRoleBinding

Here you can find one of the examples:

Allow reading a ConfigMap named “my-config” (must be bound with a RoleBinding to limit to a single ConfigMap in a single namespace):

rules:
- apiGroups: [""]
  resources: ["configmaps"]
  resourceNames: ["my-config"]
  verbs: ["get"]

Please follow similar issues related to k8s authorization in rancher and for helm.

Hope this help.

-- Hanx
Source: StackOverflow