我想控制我的远程k8s集群,但是有问题
我有k8s集群管理员提供的kubeconfig文件。但是,当我尝试连接群集时,我却犯了一个错误,当使用浏览器获取时-结果还可以
kubectl version --kubeconfig ./.kube/config -v=12 --insecure-skip-tls-verify=true --alsologtostderr
I0211 18:13:42.625408 12960 loader.go:359] Config loaded from file ./.kube/config
...
I0211 18:13:54.691273 12960 helpers.go:216] Connection error: Get https://k8s-t-deponl-01.raiffeisen.ru:8443/version?timeout=32s: Tunnel Connection Failed
F0211 18:13:54.692219 12960 helpers.go:116] Unable to connect to the server: Tunnel Connection Failed
使用浏览器回答:
{
"major": "1",
"minor": "11",
"gitVersion": "v1.11.5",
"gitCommit": "753b2dbc622f5cc417845f0ff8a77f539a4213ea",
"gitTreeState": "clean",
"buildDate": "2018-11-26T14:31:35Z",
"goVersion": "go1.10.3",
"compiler": "gc",
"platform": "linux/amd64"
}
为什么我有这个问题?