自动化安装,只需要在hosts里配置

openshift_metrics_install_metrics=true
openshift_metrics_storage_kind=nfs
openshift_metrics_storage_access_modes=['ReadWriteOnce']
openshift_metrics_storage_nfs_directory=/data/exports
openshift_metrics_storage_nfs_options='*(rw,root_squash)'
openshift_metrics_storage_volume_name=metrics
openshift_metrics_storage_volume_size=50Gi
#openshift_metrics_storage_labels={'region': 'infra'}


注意,nfs是必须要有的,例如使用自建的

[nfs]
openshift-harbor-0-b.hb2


Hipster简介: