The Web Tool can be operated using browser, each having its customized UI for a distinguished user experience.
Task : Kubernetes Integration with Python-CGI 👨🏻💻
👉🏻In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through web-UI.
👉 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.
👉 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.
- First go inside the /var/www/cgi-bin folder.
- Create a file with .py extension and write the code
- Make the file executable by using chmod command
- Then start the httpd service and disable the firewall.
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.