helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
docker pull gcr.io/kubernetes-helm/tiller:v2.8.2
# helm init -i registry.bst-1.cns.bstjpc.com:5000/gcr.io/kubernetes-helm/tiller:v2.8.2
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
--------------------------------------------------------------------------------------------------------------------
# helm version Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"} E0411 06:29:58.875505 8943 portforward.go:331] an error occurred forwarding 37637 -> 44134: error forwarding port 44134 to pod f8fa28ab14c8c3518d640d60e5527c7d49302646539d9c0a53761d066dbb196e, uid : unable to do port forwarding: socat not found.
http://www.dest-unreach.org/socat/
http://www.dest-unreach.org/socat/download/
./configure
make
make install
或者 yum install socat
helm还是报错
所有 k8s 节点上安装socat
# helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
------------------------------------------------
编译时如果出现:
gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses -DHAVE_CONFIG_H -I. -I. -c -o nestlex.o nestlex.c
nestlex.c:14:7: error: unknown type name ‘ptrdiff_t’
ptrdiff_t *len, 后面还有很多
解决办法:
vim nestlex.c 添加在头部 #include "stddef.h" 保存