kubernetes - K8S 中的 HAProxy Ingress 无法启动
问题描述
我正在使用https://haproxy-ingress.github.io/ haproxy ingress
当我在 k8s 中部署所有内容时,quay.io/jcmoraisjr/haproxy-ingress
容器启动错误,
下面的日志打印:
I0512 09:31:19.876527 6 launch.go:151]
Name: HAProxy
Release: v0.8.3
Build: git-ae30511
Repository: https://github.com/jcmoraisjr/haproxy-ingress
I0512 09:31:19.876936 6 launch.go:154] Watching for ingress class: haproxy
I0512 09:31:19.878217 6 launch.go:364] Creating API client for https://10.0.0.1:443
I0512 09:31:42.274632 6 main.go:45] Shutting down with signal terminated
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0x1036b9b]
goroutine 37 [running]:
github.com/jcmoraisjr/haproxy-ingress/pkg/controller.(*HAProxyController).Stop(0xc4203bc0e0, 0x1c, 0xc42001f790)
/home/travis/gopath/src/github.com/jcmoraisjr/haproxy-ingress/pkg/controller/controller.go:186 +0x3b
main.handleSignal(0xc4203bc0e0, 0xc4204361e0)
/home/travis/gopath/src/github.com/jcmoraisjr/haproxy-ingress/pkg/main.go:46 +0x163
created by main.main
/home/travis/gopath/src/github.com/jcmoraisjr/haproxy-ingress/pkg/main.go:30 +0x88
有人可以帮我吗,非常感谢;
解决方案
推荐阅读
- c# - UWP/C#的光标进度环
- bash - 文件结尾意外(期望“)”),将命令传递给 git filter-branch
- cassandra - 数据帧每行迭代保存到 cassandra
- nginx - 上传前的 nginx 钩子
- java - 从 XSSFWorkbook 和 SXSSFWorkbook 转换对象
- php - 如何使用jQuery检查最近的复选框
- r - 根据来自第二个数据帧的信息,一个数据帧的子集列(按名称)
- html - Bootstrap 4 - Html/CSS:行列内的贴纸页脚
- wagtail - 有没有办法在 Wagtail modeladmin 中添加实时链接到基于页面的列表视图?
- android - 使用 Realm 和 Parcel 将 API 响应存储在两个不同的模型对象中