Helm commands resulting in warnings for kubeconfig file

Solution Verified - Updated -

Issue

  • After installing/upgrading helm-cli as per the official documentation, helm commands are giving below warning messages:
# helm version
WARNING: **Kubernetes configuration file is group-readable**. This is insecure. Location: ~/.kube/config
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}
  • How to fix this?

Environment

  • Red Hat OpenShift Container Platform [RHOCP]
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content