k8s You must be logged in to the server (Unauthorized)

Code Example - k8s You must be logged in to the server (Unauthorized)

                
                        You can copy the client-certificate-data and client-key-data from 
/etc/kubernetes/admin.conf to your ~/.kube/config file as of more recent versions of Kubernetes.