GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
733 stars 83 forks source link

使用k8s搭建出现k8s api https连接错误。 #265

Closed alpaca121 closed 2 months ago

alpaca121 commented 2 months ago

Before submitting / 提交之前

What version of GZCTF are you using? / 您使用的 GZCTF 版本是什么?

GZ::CTF v0.18.5

What is the commit hash for your build? (in About page and backend logs) / 您所使用的构建的提交哈希是什么?(在关于页面和后端日志中)

GZ::CTF v0.18.5-dd4c79d66d58771c09a779ed02cfc204e01310ae

In which browsers you can reproduce the issue? / 您在哪些浏览器中可以重现此问题?

All

Describe the bug / 描述 bug

使用k8s搭建,容器访问Kubernetes API时存在https错误。 CleanShot 2024-04-12 at 4 24 18 kube-config.yaml 配置文件使用的是 .kube/conf ,base64 -w 0 .kube/conf 进行编码填写到命名空间配置文件中 CleanShot 2024-04-12 at 4 18 30 手动加载k8s的ca是可以正常访问的 CleanShot 2024-04-12 at 4 22 51 切换到docker+k3s后同样存在这个问题。

Expected behavior / 期望行为

如何解决https报错问题,配置文件的填写方式有错吗

Possible fix / 可能的修复

No response

GZTimeWalker commented 2 months ago

此问题与 k8s 无关,检查配置。

预期行为 GZCTF 不提供 TLS 服务,TLS 通过反代管理。配置问题属于非平台问题,去用户群提问。

alpaca121 commented 2 months ago

好的,感谢解答,可以给个用户群二维码吗

GZTimeWalker commented 2 months ago

@alpaca121 README