Kubernetes。 HTTPS API返回“未授权”

编程入门 行业动态 更新时间:2024-10-25 01:32:57
本文介绍了Kubernetes。 HTTPS API返回“未授权”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Kubernetes API请求 curl 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端点将在没有其中的任何一个的情况下工作(也许它应该是,但是并不显而易见)。查看 kubernetes.io/docs/admin/authentication/

Kubernetes API request curl 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 kubernetes.io/docs/admin/authentication/

更多推荐

Kubernetes。 HTTPS API返回“未授权”

本文发布于:2023-11-16 21:05:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607452.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Kubernetes   HTTPS   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!