Summer Task 9

Kubernetes Integration with Python-CGI

 

 What is Kubernetes?

 

Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.

 


 What is Kubernetes?

Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.

 


What is Python?

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Python's simple, easy-to-learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse.


What is CGI?

The common gateway interface (CGI) is a standard way for a Web server to pass a Web user’s request to an application program and to receive data back to forward to the user or in laymen terms it allows to use a web page such as HTML in front-end and programming language like python, java in the back-end part.


What is 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. Python CGI module handles situations and helps debug scripts.


How to run a CGI program in Python?

Name your script with a .cgi file extension ( example.cgi ).

Configure Apache to recognize and allow the .py file extension as a CGI script.

<< Provide Your own YAML file. Get access to all commands.


  • $kubectl get nodes

  • $kubectl get deployments

  • $kubectl get pods

  • $kubectl get ns

Commands in Web UI

 

Codes of CGI files

 


Thankyou Everyone for time stay home stay sfafe.

Comments

Popular posts from this blog

Docker with Ansible

Summer Task 7 - (07.2 )

HAPORXY