根据文档,监控随 OKD 一起提供。
OKD 附带一个基于 Prometheus 开源项目及其更广泛生态系统的预配置和自我更新监控堆栈。它提供对集群组件的监控,并附带一组警报,以立即通知集群管理员任何发生的问题和一组 Grafana 仪表板。
此外,根据文档,此命令应显示各种监控工具的链接。oc -n openshift-monitoring get routes
当我oc
使用用户运行命令时system
,我收到一条消息:No resources found.
安装不通过。
git clone https://github.com/openshift/cluster-monitoring-operator
cd cluster-monitoring-operator
oc apply -f manifests/
错误信息:
namespace "openshift-monitoring" created
serviceaccount "cluster-monitoring-operator" created
unable to decode "manifests/0000_50_cluster_monitoring_operator_02-role.yaml": no kind "ClusterRole" is registered for version "rbac.authorization.k8s.io/v1beta1"
unable to decode "manifests/0000_50_cluster_monitoring_operator_03-role-binding.yaml": no kind "ClusterRoleBinding" is registered for version "rbac.authorization.k8s.io/v1beta1"
unable to decode "manifests/0000_50_cluster_monitoring_operator_04-deployment.yaml": no kind "Deployment" is registered for version "apps/v1"
unable to decode "manifests/0000_50_cluster_monitoring_operator_05-clusteroperator.yaml": no kind "ClusterOperator" is registered for version "config.openshift.io/v1"
unable to decode "manifests/0000_90_cluster_monitoring_operator_00-operatorgroup.yaml": no kind "OperatorGroup" is registered for version "operators.coreos.com/v1"
那么,我们如何启用监控minishift
呢?