我正在使用kubeadm
部署单节点 kubernetes 1.11 集群。我找不到servicemonitor
资源。
➜ kube-prometheus git:(master) ✗ kubectl get servicemonitor
error: the server doesn't have a resource type "servicemonitor"
➜ kube-prometheus git:(master) ✗ kubectl create -f manifests/prometheus-serviceMonitor.yaml
error: unable to recognize "manifests/prometheus-serviceMonitor.yaml": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
如何servicemonitor
启用kubeadm
?