kubectl proxy 运行报错,老师抽空帮忙看看

来源:7-7 小试牛刀

大飞9

2018-06-06

root@VM-0-3-ubuntu:~/kubernetes-starter# kubectl proxy

Starting to serve on 127.0.0.1:8001

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16d76a0]


goroutine 1 [running]:

k8s.io/kubernetes/pkg/kubectl/proxy.(*Server).ServeOnListener(0x0, 0x2a5cac0, 0xc42000cbc8, 0x18, 0xc420725bd8)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/proxy/proxy_server.go:246 +0x70

k8s.io/kubernetes/pkg/kubectl/cmd.RunProxy(0x2a6f640, 0xc4203930b0, 0x2a42480, 0xc42000c018, 0xc420179b00, 0x0, 0x0)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/proxy.go:156 +0x774

k8s.io/kubernetes/pkg/kubectl/cmd.NewCmdProxy.func1(0xc420179b00, 0x2c2e538, 0x0, 0x0)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/proxy.go:79 +0x4f

k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute(0xc420179b00, 0x2c2e538, 0x0, 0x0, 0xc420179b00, 0x2c2e538)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:603 +0x234

k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4204bcfc0, 0x8000103, 0x0, 0xffffffffffffffff)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:689 +0x2fe

k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4204bcfc0, 0xc4203930b0, 0x2a42440)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:648 +0x2b

k8s.io/kubernetes/cmd/kubectl/app.Run(0x0, 0x0)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/app/kubectl.go:41 +0xd5

main.main()

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:27 +0x26


写回答

1回答

刘果国

2018-06-07

空指针,你这是发现bug了,我也搞不定呀?,可以去官方提个issue了。建议跳过proxy的练习吧,反正这种形式只是测试用,所有的练习可以放到后面正规形式再操作。

0
0

Docker+Kubernetes(k8s)微服务容器化实践

从开发到编排,快速,完整,深入的掌握微服务

2608 学习 · 607 问题

查看课程