Kubernetes Integration with Python-CGI

Amit Pandey
2 min readJun 30, 2021

Python CGI :-

Python CGI stands for Common Gateway Interface. An HTTP server invokes a Python CGI script so it can process user input that a user may submit through an HTML <FORM> or <ISINDEX> element. Such a script usually lives in the server’s special cgi-bin directory.

Kubernetes :-

It is on of the most popular Open Source Containerization management tool developed by Google Inc then it further donated to Cloud Native Computing Foundation.

kubernetes is also known as K8s.

Here we try to Setup Kubernetes Integration with Python-CGI :-

Firstly we Start mini cube setup using minicube start command then we develop a webpage using HTML, CSS and Javascript and some frameworks. HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the core technologies for building Web pages. HTML provides the structure of the page, CSS for layout. Along with graphics and scripting, HTML and CSS are the basis of building Web pages .

UI for Kubernetes integration

after than we must have to create the python executable file

link :- https://github.com/amitp9201/Task_9_LW/blob/32ce6fc161f7f06e2aa96f6b52388b33eced8201/kube.py

Further we have to launch POD by the help of WebUI.

GitHub Link:-https://github.com/amitp9201/Task_9_LW.git

Task Summery :-

Task Description 📄

📌 In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through webUI created by you.
👉 This time create webUI page as such that using normal English conversation your all commands can run in background.
Example — when we write ‘run deployment using httpd image’ then it run complete deployment command in backend.

Feature necessary -
👉 It can launch pods with specific name given by user.
👉 Run deployment using image and name given by user.
👉 Expose services on given user input port number.
👉 Scale the replica according to user need.
👉 Delete complete environment created.
👉 Delete specific resources given by user.
👉 Extra features related to k8s ( Optional)

ThankYOU

--

--