<p>I am new to the writing a custom controllers for the kubernetes and trying to understand this. I have started referring the sample-controller <a href="https://github.com/kubernetes/sample-controller" rel="nofollow noreferrer">https://github.com/kubernetes/sample-controller</a>.</p>
<p>I want to extend the sample-controller to operate VM resource in cloud using kubernetes. It could create a Vm  if new VM kind resource is detected. Update the sub resources or delete if user want.</p>
<p>Schema should be like the below:</p>
<pre><code>apiVersion: samplecontroller.k8s.io/v1alpha1
kind: VM
metadata:
name: sample
spec:
vmname: test-1
status:
vmId: 1234-567-8910
cpuUtilization: 50 
</code></pre>
<p>Any suggestions or help is highly appreciable :)</p>

john snowker
<p>Start from <a href="https://book.kubebuilder.io/" rel="nofollow noreferrer">https://book.kubebuilder.io/</a> instead. It's a much better jumping off point than sample-controller.</p>
