Kubernetes Integration with Python-CGI

Ashika Madhav
2 min readAug 19, 2021

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

For creating the 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.

These can be 2D or 3D animations, objects, or renderings; the type of art or media can be a film, television program, video game, or simulation. CGI can be used in films ranging from science fiction epics to quiet intimate dramas.

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.

--

--