无法覆盖 portainer 的 helm 配置中的 NodePort 值

问题描述 投票:0回答:1

我正在尝试安装 portainer with helm

安装崩溃,因为集群上的 30777 端口已经繁忙:

Error: INSTALLATION FAILED: Service "portainer" is invalid: spec.ports[0].nodePort: Invalid value: 30777: provided port is already allocated

因此我运行以下命令来覆盖端口值:

helm install -n sandbox-guiops  portainer portainer/portainer --set spec.ports[0].nodePort=40777

但无论如何我仍然遇到同样的错误。

我猜这是因为我没有正确调用参数“nodePort”,但话又说回来:

helm show values portainer/portainer | grep -i port
# Default values for portainer.
    repository: portainer/portainer-ee
  repository: portainer/portainer-ce
  name: portainer-sa-clusteradmin
  # Set the httpNodePort and edgeNodePort only if the type is NodePort
  type: NodePort
  httpPort: 9000
  httpsPort: 9443
  httpNodePort: 30777
  httpsNodePort: 30779
  edgePort: 8000
  edgeNodePort: 30776

无论我使用“httpNodePort”还是其他任何东西,无论如何我仍然收到相同的错误消息。

kubernetes-helm portainer
1个回答
1
投票

基于this参考,我认为这应该通过

设置
--set service.httpNodePort=40777

还可以在 helm 命令中执行

--dry-run --debug
来检查在尝试安装之前是否填充了必要的值。

© www.soinside.com 2019 - 2024. All rights reserved.