Kubernetes WebApp

Gursimar Singh
2 min readJun 27, 2021
Container-Orchestration System

The Web Tool can be operated using texts and voice, each having its customized UI for a distinguished user experience.

Task : Kubernetes Integration with Python-CGI ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

Task Description ๐Ÿ“„

๐Ÿ“Œ In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through webUI.

Task 7.1 : https://www.linkedin.com/posts/gursimar-_javascript-html-css-activity-6810562923065327616-Oo3n

๐Ÿ‘‰ 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.

Features -
๐Ÿ‘‰ 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)

For creating this application we have to use CGI programming.

What is CGI?

The Common Gateway Interface, or CGI, is a standard for external gateway programs to interface with information servers such as HTTP servers

For CGI programming with python we have to follow these steps.

  1. First go inside the /var/www/cgi-bin folder.
  2. Create a file with .py extension and write the code
  3. Make the file executable by using chmod command
  4. Then start the httpd service and disable the firewall.

We will implement the AJAX concept using JavaScript to connect it with the python CGI program.

What is AJAX?

Ajax is a set of web development techniques using many web technologies on the client-side to create asynchronous web applications. With Ajax, web applications can send and retrieve data from a server asynchronously without interfering with the display and behavior of the existing page.

Learn more about JavaScript: JavaScript โ€” Complete Guide. In this article we will be exploringโ€ฆ | by Gursimar Singh | CodeX | Jun, 2021 | Medium

This is how it works,

We can also toggle between dark mode and light mode.

--

--

Gursimar Singh

Google Developers Educator | Speaker | Consultant | Author @ freeCodeCamp | DevOps | Cloud Computing | Data Science and more