我试图在kubernetes集群上使用helm安装postgresql。当我运行helm命令时,传输中会出现错误。
我在网上绑定了不同的解决方案,没有一种有效。
helm install --name realtesting stable/postgresql --debugexpect结果是在我的kubernetes集群上部署的postgresql
请帮帮我!
发布于 2019-05-10 10:27:08
您似乎还没有用服务帐户初始化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:helm init --service-account tiller --history-max 200
步骤3:用heml ls测试设置。运行此命令时不会有任何输出,这是预期的。现在,您可以运行helm install --name realtesting stable/postgresql
发布于 2019-05-10 08:52:54
你需要部署分蘖服务器。
然后按照以下步骤执行
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.1https://stackoverflow.com/questions/56073640
复制相似问题