最后更新于3年前
1、创建命名空间
2、安装operator
kubectl create ns kube-monitoring
wget https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.46.0/bundle.yaml sed -i 's/namespace: default/namespace: kube-monitoring/g' bundle.yaml kubectl apply -f bundle.yaml