A Webpage which runs the Kubernetes commands….

Dushyanth Desu
2 min readJul 2, 2021

Creating a webpage and integrating it with kubernetes and python CGI.

Technologies used

Python — CGI
Kubernetes
HTML
CSS
JavaScript

In this article I am gonna explain you how to how to create a Web-UI has the capability to run the Kubernetes commands that too the input from the user is taken not as command, but in normal English language. The input is sent to my VM acting as a server and using python-CGI it decodes the input into the command and runs the Kubernetes command and sends the output back to the webpage.

Step-1

Creating a Web-UI

Webpage created using HTML and CSS

I had created this webpage with the HTML, CSS and JavaScript. All the functions that it is capable of is also displayed there with the sample examples.

Step -2

Creating a python-CGI code to make it act as a server, so that it runs the code and gives back the output to the webpage.

All the codes for the frontend and the backend are in my GitHub.

Thank you for reading…

--

--