這是我在 Cortex 掌舵圖中的警報管理器的自定義值。
alertmanager:
enabled: true
replicas: 1
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
extraVolumes:
- name: tmp-dir
emptyDir: {}
extraVolumeMounts:
- name: tmp-dir
mountPath: /tmp
sidecar:
enabled: true
label: cortex_am
labelValue: "true"
folder: /data/configs
defaultFolderName: /alerts
但我無法使用
helm install cortex cortex/cortex --namespace cortex -f cortex.yaml --dry-run
這是拋出以下錯誤
Error: INSTALLATION FAILED: YAML parse error on cortex/templates/alertmanager/alertmanager-dep.yaml: error converting YAML to JSON: yaml: line 122: mapping values are not allowed in this context
但是當我注釋掉以下部分時,它已成功部署。但是我需要創建并掛載額外的掛載才能使其正常作業。
extraVolumes:
- name: tmp-dir
emptyDir: {}
extraVolumeMounts:
- name: tmp-dir
mountPath: /tmp
此外,當使用從 Flux 繼承的相同值時,此自定義值檔案在 helm 版本中作業正常,并且縮進也沒有問題。
任何人都知道為什么會發生這種情況?
uj5u.com熱心網友回復:
感謝您報告此問題。應在 PR https://github.com/cortexproject/cortex-helm-chart/pull/266合并后修復。
免責宣告:來自 cortex-helm-chart 的維護者在這里。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/367691.html
