IBM-MQ kubernetes helm 图表 ImagePullBackOff

IBM-MQ kubernetes helm chart ImagePullBackOff

我想使用 helmfile 将 IBM-MQ 部署到 Kubernetes (Rancher)。我找到了这个 link 并按照指南中的描述做了所有事情:https://artifacthub.io/packages/helm/ibm-charts/ibm-mqadvanced-server-dev.

但是 pod 没有启动,出现错误:“ImagePullBackOff”。可能是什么问题呢?我的头盔文件:

...
repositories:
  - name: ibm-stable-charts
    url: https://raw.githubusercontent.com/IBM/charts/master/repo/stable

releases:
  - name: ibm-mq
    namespace: test
    createNamespace: true
    chart: ibm-stable-charts/ibm-mqadvanced-server-dev
    values:
      - ./ibm-mq.yaml

ibm-mq.yaml:

- - - 
license: accept
security:
  initVolumeAsRoot: true/false // I'm not sure about this, I added it just because it wasn't working.
// Both of the options don't work too 
queueManager:
  name: "QM1"
  dev:
    secret:
      adminPasswordKey: adminPassword
      name: mysecret

我已经创建了密文并且看起来它在工作,所以问题不在密文中。 我得到的完整错误:

Failed to pull image "ibmcom/mq:9.1.5.0-r1": rpc error: code = Unknown desc = Error response from daemon: manifest for ibmcom/mq:9.1.5.0-r1 not found: manifest unknown: manifest unknown

我正在使用 helm 3,helmfile v.0.141.0,kubectl 1.22.2

我会把一些东西留给你作为练习,但教程是这样说的:

helm repo add ibm-stable-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable

您实际上不需要这样做,因为您正在使用 helmfile

然后他们说要发布:

helm install --name foo 
     ibm-stable-charts/ibm-mqadvanced-server-dev 
     --set license=accept 
     --set queueManager.dev.secret.name=mysecret 
     --set queueManager.dev.secret.adminPasswordKey=adminPassword 
     --tls

这是针对 helm2(因为 --name--tls),但这与问题无关。

当我安装这个时,我遇到了同样的问题:

Failed to pull image "ibmcom/mq:9.1.5.0-r1": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/ibmcom/mq:9.1.5.0-r1": failed to resolve reference "docker.io/ibmcom/mq:9.1.5.0-r1": docker.io/ibmcom/mq:9.1.5.0-r1: not found

我去了 docker.io 页面 of theirs 确实没有这样的标签:9.1.5.0-r1

好的,那我们可以更新图片吗?

helm show values ibm-stable-charts/ibm-mqadvanced-server-dev

揭示:

image:
   # repository is the container repository to use, which must contain IBM MQ Advanced for Developers
  repository: ibmcom/mq
  # tag is the tag to use for the container repository
  tag: 9.1.5.0-r1

很好,这意味着我们可以通过覆盖值更改它:

helm install foo 
   ibm-stable-charts/ibm-mqadvanced-server-dev 
   --set license=accept 
   --set queueManager.dev.secret.name=mysecret 
   --set queueManager.dev.secret.adminPasswordKey=adminPassword 
   --set image.tag=latest # or any other tag

所以这行得通。

如何在 helmfile 中设置该标签作为练习留给您,但它非常简单。