Kubernetes。 HTTPS API返回`未经授权' [英] Kubernetes. HTTPS API return `Unauthorized`

查看:683
本文介绍了Kubernetes。 HTTPS API返回`未经授权'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kubernetes API请求 curl https://192.168.0.139 --cacert /home/mongeo/ku-certs/ca.pem return 未经授权

Kubernetes API request curl https://192.168.0.139 --cacert /home/mongeo/ku-certs/ca.pem return Unauthorized

请求 curl localhost:8080 工作良好。

我的kube-proxy和kube-apiserver标准( coreos + k8s教程

My kube-proxy and kube-apiserver standart (coreos+k8s tutorial)

如何在HTTPS上获取数据?

How do I get data on HTTPS?

推荐答案

是否指定 - token-auth-file =< file> 和/或 - basic-auth- =< otherfile> 或其他认证模式之一?我不知道https端点将工作没有其中之一(也许应该,但它不,显然)。查看 http://kubernetes.io/v1.1/docs/admin/authentication .html

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 http://kubernetes.io/v1.1/docs/admin/authentication.html

这篇关于Kubernetes。 HTTPS API返回`未经授权'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆