请问k8s安装的普罗米修斯是否会和在k8s上安装最小化的ks冲突了,有冲突的话如何解决
安装3.0,monitoring异常
这是已经安好的ks再安装普罗米修斯的时候就有异常了,然后ks界面就变成这样了
RolandMa1986K零S
jcm 参考一下这个文档 https://kubesphere.com.cn/docs/faq/byop/。 可以使用你自己的的Prometheus。
RolandMa1986 好的谢谢,因为我提前安了普罗米修斯,所以就跳过第二步,按文档来,然后就出现了这个问题
root@gzk8s-master1:~/kubesphere/kube-prometheus/kustomize# sed -i ‘s/my-namespace/monitoring/g’ kustomization.yaml
root@gzk8s-master1:~/kubesphere/kube-prometheus/kustomize#
root@gzk8s-master1:~/kubesphere/kube-prometheus/kustomize# kubectl apply -k .
Warning: kubectl apply should be used on resource created by either kubectl create –save-config or kubectl apply
clusterrole.rbac.authorization.k8s.io/prometheus-k8s configured
Warning: kubectl apply should be used on resource created by either kubectl create –save-config or kubectl apply
secret/alertmanager-main configured
unable to recognize “.”: no matches for kind “PrometheusRule” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “PrometheusRule” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
unable to recognize “.”: no matches for kind “ServiceMonitor” in version “monitoring.coreos.com/v1”
问题已解决