Add Certificates to Kubeconf
“I have an local Kubernetes environment and I basically copy .kube/config file to my local and added "context", "users", and "cluster" informations to my current ".kube/config" file. That's ok, I can connect to my local file.\r\n\r\nBut I want to add these informations to my local config file with commands.\r\n\r\nSo regarding to this page, I can use "certificate-authority-data" as parameter like below: —> https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/\r\n\r\n PS C:\Users\user\.kube> kubectl config –kubeconfig=config set-cluster local-kubernetes –server=https://10.10.10.10:6443 –certificate-authority-data=LS0tLSAASDASDADAXXXSDETRDFDJHFJWEtGCmx0YVR2SE45Rm9IVjAvQkdwRUM2bnFNTjg0akd2a3R4VUpabQotLS0tLUVORCBDADADADDAADS0tXXXCg==\r\n Error: unknown flag: –certificate-authority-data\r\n See 'kubectl config set-cluster –help' for usage.\r\n PS C:\Users\user\.kube>\r\n\r\nBut it throws error like above. I'm using kubernetes latest version.\r\n\r\nHow can I add these informations to my local file with kubectl config command?\r\n\r\nThanks!” <a href=““https://stackoverflow.com/questions/64850658/how-to-add-certificates-to-kube-config-file"">— “yatta”