【问题标题】:Error in Transport for helm install packagehelm install 包的传输错误
【发布时间】:2019-05-10 20:45:45
【问题描述】:

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

我在网上绑定了不同的解决方案,没有一个有效。

helm install --name realtesting stable/postgresql --debug

预期结果是在我的 kubernetes 集群上部署了一个 postgresql

请帮忙!

【问题讨论】:

  • 你部署了tiller服务器吗?分享错误详情。

标签: kubernetes kubernetes-helm


【解决方案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

第一步kubectl apply -f rbac-config.yaml

第 2 步helm init --service-account tiller --history-max 200

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

【讨论】:

  • 好的,@rajesh。完成所有这些操作后,它起作用了,但我的 pod 仍处于挂起状态
【解决方案2】:

您需要部署分蘖服务器。

然后按照以下步骤操作

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 install 命令正是他们所说的他们已经在失败的地方。
  • 如需进一步调试,请使用:kubectl get events, kubectl get pv,pvc, kubectl describe pod <your postgresql pod>
猜你喜欢
  • 2019-04-12
  • 2019-04-05
  • 1970-01-01
  • 2022-08-11
  • 2020-02-19
  • 2019-10-09
  • 1970-01-01
  • 1970-01-01
  • 2022-11-11
相关资源
最近更新 更多