<p>I want to create pods, manage replica sets, and deployments using a rest API either built with PHP or Python. This needs to be controlled from a web app where the user clicks on a button and a new pod with a specific volume is created. I'm not sure how to achieve this. </p>

<p>I came across KC8 API and Python KC8 client API but I'm unable to achieve what is required. TIA</p>

Ibad Rehman
<p>Kubernetes is controlled through an HTTP REST API, which is fully specified <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/" rel="nofollow noreferrer">here</a>. You could write a web app that directly issues the appropriate HTTP requests to the Kubernetes API server.</p>

<p>However, it's much more recommended to use one of the <a href="https://kubernetes.io/docs/reference/using-api/client-libraries/" rel="nofollow noreferrer">Kubernetes client libraries</a> that exist for different programming languages. These libraries wrap all the HTTP requests in function calls and also take care of things like authentication.</p>

<p>You can find example code using the different client libraries in the GitHub repositories of most libraries (<a href="https://kubernetes.io/docs/reference/using-api/client-libraries/#officially-supported-kubernetes-client-libraries" rel="nofollow noreferrer">see here</a>).</p>
