Kubernetes helm安装包的运输错误

Kubernetes helm安装包的运输错误,kubernetes,kubernetes-helm,Kubernetes,Kubernetes Helm,我正试图在kubernetes集群上使用helm安装postgresql。 当我运行helm install命令时,在传输中出现错误 我在网上找到了不同的解决方案,但没有一个有效 helm install --name realtesting stable/postgresql --debug 预期结果是在我的kubernetes集群上部署postgresql 请帮忙 您需要部署tiller服务器 然后按照以下步骤操作 master $ kubectl get po -n kube-syste

我正试图在kubernetes集群上使用helm安装postgresql。 当我运行helm install命令时,在传输中出现错误

我在网上找到了不同的解决方案,但没有一个有效

helm install --name realtesting stable/postgresql --debug
预期结果是在我的kubernetes集群上部署postgresql


请帮忙

您需要部署tiller服务器

然后按照以下步骤操作

master $ kubectl get po -n kube-system |grep tiller
tiller-deploy-5bcf6f5c7c-km8hn   1/1       Running   0          18s

master $ helm install --name realtesting stable/postgresql --debug
[debug] Created tunnel using local port: '32876'

[debug] SERVER: "127.0.0.1:32876"

[debug] Original chart version: ""
[debug] Fetched stable/postgresql to /root/.helm/cache/archive/postgresql-4.0.1.tgz

[debug] CHART PATH: /root/.helm/cache/archive/postgresql-4.0.1.tgz

NAME:   realtesting
REVISION: 1
RELEASED: Fri May 10 08:52:11 2019
CHART: postgresql-4.0.1


似乎您尚未使用服务帐户初始化helm

在rbac-config.yaml中:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
步骤1
kubectl apply-f rbac config.yaml

步骤2
掌舵初始化——服务帐户舵柄——历史记录最大值200


步骤3:使用
heml ls
测试设置。运行此命令不会有任何输出,这是预期的。现在,您可以运行
helm安装--name realtesting stable/postgresql

您部署了tiller服务器吗?分享错误细节。提问者应该做什么不同的事情?
helm install
命令正是他们所说的,他们已经失败了。要进一步调试,请使用:
kubectl get events,kubectl get pv,pvc,kubectl description pod
ok,@rajesh。在完成所有这些之后,它工作了,但我的播客仍然处于挂起状态