dju*_*rez 6 openshift gitlab kubernetes kubernetes-helm
我正在尝试根据https://gitlab.com/charts/gitlab/blob/master/requirements.yaml配置包含在 Gitlab Helm 图表中的 Prometheus
我的主要问题是如何配置 Prometheus,因为以下values.yaml似乎被忽略了:
global:
registry:
enabled: false
# Disabling minio still requires to disable gitlab.minio or it will complain about "A valid backups.objectStorage.config.secret is needed"
minio:
enabled: false
ingress:
configureCertmanager: false
class: "nginx"
...
prometheus:
install: true
rbac:
create: true
#kubeStateMetrics:
# enabled: true
nodeExporter:
enabled: true
#pushgateway:
# enabled: true
server:
configMapOverrideName: prometheus-config
configPath: /etc/prometheus/conf/prometheus.yml
persistentVolume:
enabled: true
accessModes:
- ReadWriteMany
mountPath: /etc/prometheus/conf
# Increase afterwards, this is for my tests
size: 2Gi
alertmanager:
enabled: true
# Overriding the default configuration with the existing one
configMapOverrideName: "alertmanager"
configFileName: config.yml
persistentVolume:
enabled: true
accessModes:
- ReadWriteMany
mountPath: /prometheus
# Increase afterwards, this is for my tests
size: 2Gi
Run Code Online (Sandbox Code Playgroud)
检查您提供的链接,您似乎正在尝试将值添加到父图表的 values.yaml 中,其中 prometheus 是从属子图表。
在父 values.yaml 文件中指定值的方式与您在上面提供的方式完全相同。
子图表的值应进入与子图表完全相同的属性。
parentProp1: value
parentProp2: value
global:
globalProp1: value
globalProp2: value
subchart1:
subchartProp1: value
subchartProp2: value
Run Code Online (Sandbox Code Playgroud)
现在在上面的一组值中,让我们假设有一个parentchart并且它有一个名为 的子图表subchart1。您需要了解以下几点:
parentProp1并且parentProp2只能在被访问parentchart,而不是在subchart1为Values.parentProp1和Values.parentProp2Values.global.globalProp1subchartProp1并且subchartProp2可以作为被访问Values.subchart1.subchartProp1和Values.subchart1.subchartProp2在parentchartsubchartProp1并且subchartProp2可以作为被访问Values.subchartProp1和Values.subchartProp2在subchart1另外请不要忘记使用双花括号的正确语法 {{ Values.xyz }}
我希望它有帮助。:)
| 归档时间: |
|
| 查看次数: |
783 次 |
| 最近记录: |