【问题标题】:Graylog helm with alb ingress controller带有 alb 入口控制器的 Graylog helm
【发布时间】:2020-05-21 11:12:39
【问题描述】:

我正在尝试通过 helm 部署 graylog 并利用 alb 入口控制器。我无法使用--set graylog.ingress.extraPaths=。我只想启用 ssl 重定向。

helm install --namespace "graylog" -n "graylog" stable/graylog \
  --set graylog.replicas=1 \
  --set graylog.service.type=NodePort \
  --set graylog.ingress.enabled=true  \
  --set graylog.ingress.hosts.0=XXX \
  --set graylog.ingress.path="/*" \
  --set graylog.ingress.extraPaths="[{"backend":{"serviceName":"ssl-redirect","servicePort":"use-annotation"},"path":"/*"}]" \
  --set graylog.ingress.annotations."kubernetes\.io/ingress\.class"=alb \
...

我也尝试过转义 json,但无法使其正常工作。它会说 Error: failed parsing --set data: key "servicePort:use-annotation}" has no value (cannot end with ,), 说图表名称丢失,或者 Error: YAML parse error on graylog/templates/ ingress.yaml:将 YAML 转换为 JSON 时出错:yaml:第 38 行:未找到预期的密钥。

有没有人通过设置标志设置这个值来帮助我?实际的 yml 最终会是这样的:

          - path: /*
            backend:
              serviceName: ssl-redirect
              servicePort: use-annotation

【问题讨论】:

    标签: kubernetes-helm graylog


    【解决方案1】:

    想通了:

      --set graylog.ingress.extraPaths[0].backend.serviceName=ssl-redirect \
      --set graylog.ingress.extraPaths[0].backend.servicePort=use-annotation \
      --set graylog.ingress.extraPaths[0].path="/*" \
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-30
      • 2020-01-06
      • 2020-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多