root@kube-node-a:~# helm upgrade rancher rancher-stable/rancher –namespace cattle-system –set hostname=192.168.72.90.sslip.io –set bootstrapPassword=P@55w0rdxx
Error: UPGRADE FAILED: Kubernetes cluster unreachable: the server has asked for the client to provide credentials
root@kube-node-a:~#

Menambahkan kubectl ke .kube/config

kubectl config view --raw > ~/.kube/config
sudo chmod o-r ~/.kube/config
sudo chmod g-r ~/.kube/config

Berikut cara menambahkannya

root@kube-node-a:~# kubectl config view --raw > ~/.kube/config
root@kube-node-a:~# sudo chmod o-r ~/.kube/config
root@kube-node-a:~# sudo chmod g-r ~/.kube/config
root@kube-node-a:~#

Leave a Reply

Your email address will not be published. Required fields are marked *