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.

No alt text provided for this image


The name Kubernetes originates from Greek, meaning helmsman or pilot. K8s as an abbreviation results from counting the eight letters between the "K" and the "s". Google open-sourced the Kubernetes project in 2014. Kubernetes combines over 15 years of Goggle's experience running production workloads at scale with best-of-breed ideas and practices from the community.

No alt text provided for this image


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?

No alt text provided for this image

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.

No alt text provided for this image

  • $kubectl get nodes
  • $kubectl get deployments
  • $kubectl get pods
  • $kubectl get ns

<< Commands in Web UI

No alt text provided for this image
No alt text provided for this image

Codes of CGI files

No alt text provided for this image
No alt text provided for this image


Thank you for your valuable time reading my article...

要查看或添加评论,请登录

Aakansha Singh的更多文章

  • K-Means clustering

    K-Means clustering

    What is Clustering? Clustering is one of the most common exploratory data analysis technique used to get an intuition…

  • Object Recognition using CNN model

    Object Recognition using CNN model

    ?? In this task : ??Create a model that will detect a car in a live stream or video and recognize characters on the…

  • Javascript Integration with Docker

    Javascript Integration with Docker

    In this project, I have integrated python with Docker !! Python is one of the most popular languages nowadays and…

  • JAVASCRIPT

    JAVASCRIPT

    Introduction JavaScript is a programming language used primarily by Web browsers to create a dynamic and interactive…

  • FACE RECOGNIZER

    FACE RECOGNIZER

    Create Face Dataset : First we need to create face dataset. The data set will contain 100 image sample of a face.

  • CONFUSION MATRIX AND CYBER CRIME

    CONFUSION MATRIX AND CYBER CRIME

    Confusion Matrix is the visual representation of the Actual VS Predicted values. It measures the performance of our…

社区洞察

其他会员也浏览了