没获取到pod信息,什么原因啊

来源:3-7 Golang后端项目搭建-集成K8S(上)

KimStorm

2026-03-22

没获取到pod信息,什么原因啊
执行提示:

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /example/ping             --> kubeimooc/api/example.(*ExampleApi).ExampleTest-fm (3 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on :8888
写回答

1回答

暮闲

2026-03-22

同学你好 有更多的日志信息吗 你这里我只看到了服务启动信息 还有你是怎么调用的 也贴一下

0
0

Kubernetes系统精讲 Go语言实战K8S集群可视化

核心知识+高阶应用+原理剖析+二次开发 全方位打通K8S生产实践

430 学习 · 281 问题

查看课程