On my ubuntu 18.04 aws server I try to create cluster via kops.
kops create cluster
--name=asdf.com
--state=s3://asdf
--zones=eu-west-1a
--node-count=1
--node-size=t2.micro
--master-size=t2.micro
--master-count=1
--dns-zone=asdf.com
--ssh-public-key=~/.ssh/id_rsa.pub
kops update cluster --name asdf.com
Succesfully Updated my cluster.
But when i try to validate and try to
kubectl get nodes
I got the error : Server gave http response to https server
kops validate cluster --name asdf.com
Validation failed: unexpected error during validation: error listing nodes: Get https://api.asdf.com/api/v1/nodes: http: server gave HTTP response to HTTPS client
Error
I could’nt solve this.
I tried
kubectl config set-cluster asdf.com --insecure-skip-tls-verify=true
but it didnt work.
Please can you help?
question from:
https://stackoverflow.com/questions/65861600/validate-cluster-api-v1-nodes-http-server-gave-http-response-to-https-client 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…