问题描述
当我尝试使用Helm图表在GCP Kubernetes引擎中安装IBM mq时,出现了上图所示的错误.任何人都可以帮助我...
Infrastructure: Google Cloud Platform
Kubectl version:
Client Version: v1.18.6
Server Version: v1.16.13-gke.1.
Helm version: v3.2.1+gfe51cd1
helm chart:
helm repo add ibm-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable/
头盔命令:
$ helm install mqa ibm-charts/ibm-mqadvanced-server-dev --version 4.0.0 --set license=accept --set service.type=LoadBalancer --set queueManager.dev.secret.name=mysecret --set queueManager.dev.secret.adminPasswordKey=adminPassword --set security.initVolumeAsRoot=true
首先,它似乎没有安装正确版本的Helm图表.您可以遵循官方的安装指示.
第二,消息不一致.该错误显示GKE v1.15.12-gke.2和GKE v1.16.13-gke.1.因此,我将确保您的客户端K8s 上下文指向正确的群集.
看来kubectl版本不匹配.
例如,您可以下载v1.16.13
客户端以使其匹配(假设您的客户端在Linux上):
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.13/bin/linux/amd64/kubectl
$ chmod +x kubectl
$ ./kubectl version
✌️
While I'm trying to install IBM mq in the GCP Kubernetes engine using Helm charts, I got an error as shown in above figure. Anyone help me out from this...
Infrastructure: Google Cloud Platform
Kubectl version:
Client Version: v1.18.6
Server Version: v1.16.13-gke.1.
Helm version: v3.2.1+gfe51cd1
helm chart:
helm repo add ibm-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable/
Helm command:
$ helm install mqa ibm-charts/ibm-mqadvanced-server-dev --version 4.0.0 --set license=accept --set service.type=LoadBalancer --set queueManager.dev.secret.name=mysecret --set queueManager.dev.secret.adminPasswordKey=adminPassword --set security.initVolumeAsRoot=true
First, it appears it's not installing the right version of the Helm chart. You can follow the official installation instructions for the Chart.
Secondly, the messages are inconsistent. The error shows a GKE v1.15.12-gke.2 and also a GKE v1.16.13-gke.1. So I would make sure your client K8s context is pointing to the right cluster.
It also appears that the kubectl versions are not matching.
For example, you can download the v1.16.13
client so that it matches (Assuming that your client is on Linux):
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.13/bin/linux/amd64/kubectl
$ chmod +x kubectl
$ ./kubectl version
✌️
这篇关于使用掌舵图表在GCP GKE中安装IBM Mq,出现kube版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!