<p>I was looking at the kubernetes API endpoints listed <a href="http://kubernetes.io/docs/api-reference/v1/operations/" rel="noreferrer">here</a>. Im trying to create a deployment which can be run from the terminal using <code>kubectl ru CLUSTER-NAME IMAGE-NAME PORT</code>. However I cant seem to find any endpoint for this command in the link I posted above. I can create a node using <code>curl POST /api/v1/namespaces/{namespace}/pods</code> and then delete using the <code>curl -X DELETE http://localhost:8080/api/v1/namespaces/default/pods/node-name</code> where node name HAS to be a single node  (if there are 100 nodes, each should be done individually). <strong>Is there an api endpoint for creating and deleting deployments??</strong></p>

<p>To make it easier to eliminate fields or restructure resource representations, Kubernetes supports multiple API versions, each at a different API path, such as <code>/api/v1</code> or <code>/apis/extensions/v1beta1</code> and to extend the Kubernetes API,  API groups is implemented.</p>

<p>Currently there are several API groups in use:</p>

<ul>
<li>the <code>core</code> (oftentimes called <code>legacy</code>, due to not having explicit group name) group, which is at REST path <code>/api/v1</code> and is not specified as part of the apiVersion field, e.g. <code>apiVersion: v1</code>.</li>
<li>the <code>named groups</code> are at REST path <code>/apis/$GROUP_NAME/$VERSION</code>, and use <code>apiVersion: $GROUP_NAME/$VERSION</code> (e.g. <code>apiVersion: batch/v1</code>). Full list of supported API groups can be seen in <a href="https://kubernetes.io/docs/reference/" rel="noreferrer">Kubernetes API reference</a>.</li>
</ul>

<p>To manage extensions resources such as <code>Ingress</code>, <code>Deployments</code>, and <code>ReplicaSets</code> refer to <code>Extensions API</code> <a href="https://kubernetes.io/docs/api-reference/extensions/v1beta1/operations/" rel="noreferrer">reference</a>.</p>

<p>As described in the reference, to create a Deployment:</p>

<p><code>POST /apis/extensions/v1beta1/namespaces/{namespace}/deployments</code></p>
