0

我正在尝试在 Kubernetes 集群上安装 Fission。当我跑的时候:

helm install --namespace fission https://github.com/fission/fission/releases/download/0.4.1/fission-all-0.4.1.tgz

我给出了一些错误:

E0218 09:14:41.578967    3357 portforward.go:331] an error occurred forwarding 36281 -> 44134: error forwarding port 44134 to pod b29ecdfb514ada5583e99e416d3fc07e25d5bcf71206b450a1f4f972a9d2502b, uid : exit status 1: 2018/02/18 09:14:41 socat[26057] E connect(5, AF=2 127.0.0.1:44134, 16): Connection refused
Error: transport is closing

如何修复这些错误并安装 Fission?

我的集群操作系统是Debian 9,Kubernetes 版本是:

kubeadm version: &version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

更新:

我解决了之前的错误,我可以安装 Fission。但我有一个新错误。当我跑fission env create --name nodejs --image fission/node-env:0.4.1

我给出了这个错误:

Failed to create environment: Post 
http://178.162.203.65:31313/v2/environments: dial tcp 178.162.203.65:31313: 
getsockopt: connection refused
4

1 回答 1

2

最后我自己找到了问题的答案。当我安装 Kubernetes 时。正是在跑完之后,kubeadm init我必须跑:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

既不root也不none-root必须运行上述命令。(我不知道为什么)

于 2018-02-21T08:07:19.477 回答