簡體   English   中英

Windows azure kubernetes-運行容器(簡單版本)

[英]windows azure kubernetes - Running a container(simple version)

從kubernetes github上的步驟開始

“運行容器(簡單版本)”部分

cluster/kubecfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx

kubecfg.go:443] Error: request [&http.Request{Method:"POST", URL:(*url.URL)(xxx), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Authorization":[]string{"Basic xxx =="}}, Body:ioutil.nopCloser{Reader:(*bytes.Buffer)(xxx)}, ContentLength:573, TransferEncoding:[]string(nil), Close:false, Host:"myVM.cloudapp.net", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil)}] failed (502) 502 Bad Gateway: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>

聽起來您的apiserver沒有啟動; 如果只是慢,那應該是短暫的。

但是您更有可能需要登錄到主VM,並查看/var/log/kube-apiserver.log以查看其啟動失敗的原因。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM