Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
658 views
in Technique[技术] by (71.8m points)

kubernetes - Validate Cluster - api/v1/nodes: http: server gave HTTP response to HTTPS client

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

t2.micro instances may be too small for a control plane nodes. They will certainly be very slow in booting properly. You can try omitting that flag (i.e use the default size) and see if that boots up properly.

Tip: use kops validate cluster --wait=30m as it may provide more clues to what is wrong.

Except for the instance size, the command above looks good. But if you want to dif deeper, you can have a look at https://kops.sigs.k8s.io/operations/troubleshoot/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...