yum install -y go go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb # jsonnet 的包管理器 go get github.com/brancz/gojsontoyaml # go 语言编写的 json 转化为 yaml 工具 # 安装好的二进制包在 ~/go/bin/ 目录下 cd ~/go/bin/ cp jb gojsontoyaml /usr/local/bin/
{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } + { ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } + { ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } + { ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } + { ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } + { ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } + { ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }