使用掌舵图表在GCP GKE中安装IBM Mq,出现kube版本错误 [英] Installation of IBM Mq in GCP GKE using helm charts, had an kube version error

查看:250
本文介绍了使用掌舵图表在GCP GKE中安装IBM Mq,出现kube版本错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用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
 

✌️<​​/p>

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版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆