<p>I am using <code>kubeadm</code> to deploy single node kubernetes 1.11 cluster.
I am unable to find <code>servicemonitor</code> resources.</p>

<pre><code>➜  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"
</code></pre>

<p>How do I enable <code>servicemonitor</code> with <code>kubeadm</code>?</p>

<p>The <code>ServiceMonitor</code> resource not part of Kubernetes itself. It is a custom resource which is part of the Prometheus operator <a href="https://github.com/coreos/prometheus-operator#customresourcedefinitions" rel="noreferrer">as described here</a>.</p>

<p>Make sure that you have installed the Prometheus operator (including the custom resources) beforehand to enable creating a ServiceMonitor object.</p>
