Kubernetes。 HTTPS API返回“未授权” [英] Kubernetes. HTTPS API return `Unauthorized`
问题描述
Kubernetes API请求 curl https://192.168.0.139 --cacert /home/mongeo/ku-certs/ca.pem
返回未经授权
请求 curl localhost:8080
b
我的kube-proxy和kube-apiserver standart( coreos + k8s教程)
如何在HTTPS上获取数据?
您是否指定了 - token-auth-file =< file>
和/或 - basic-auth-file =< otherfile>
或其他验证模式之一?我不知道https端点将在没有其中的任何一个的情况下工作(也许它应该是,但是并不显而易见)。查看 https://kubernetes.io/docs/admin/authentication/
Kubernetes API request curl https://192.168.0.139 --cacert /home/mongeo/ku-certs/ca.pem
return Unauthorized
Request curl localhost:8080
worked good.
My kube-proxy and kube-apiserver standart (coreos+k8s tutorial)
How do I get data on HTTPS?
Did you specify --token-auth-file=<file>
and/or --basic-auth-file=<otherfile>
or one of the other authentication modes? I don't know that https endpoint will work without one of these (maybe it should, but it doesn't, apparently). Check out https://kubernetes.io/docs/admin/authentication/
这篇关于Kubernetes。 HTTPS API返回“未授权”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!