K8s-webui Integration with Python

Rupesh Jadhav
4 min readSep 8, 2021



Kubernetes (also known as k8s or “kube”) is an open source container orchestration platform that automates many of the manual processes involved in deploying, managing, and scaling containerized applications.
In other words, you can cluster together groups of hosts running Linux containers, and Kubernetes helps you easily and efficiently manage those clusters.

Kubernetes Components

When you deploy Kubernetes, you get a cluster.

A Kubernetes cluster consists of a set of worker machines, called nodes, that run containerized applications. Every cluster has at least one worker node.

The worker node(s) host the Pods that are the components of the application workload. The control plane manages the worker nodes and the Pods in the cluster. In production environments, the control plane usually runs across multiple computers and a cluster usually runs multiple nodes, providing fault-tolerance and high availability.

This document outlines the various components you need to have a complete and working Kubernetes cluster.

Kubernetes Components-

Kubernetes Integration with Python-CGI

In this practical we are trying to interested k8s , JavaScript using Python CGI in this interrogation there are some features we can perform


👉 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.

Step 1-

Start mini cube setup using minicube start command

Use minicube status command to check our status is ok or not

When status is ok a at the time mini cube run ine VMware

Step 2 -

This is a front end code

Backend python code

Step 3-

UI output page

In this UI page we are fire get port command and execute and see the output result

And similarly we can check cubectl get ports command to check port is running or not

Step 4-

If you are need dashboard in any browser at the time we are used mini cube dasboard command because this command given does board

In this dashboard are check pods detail, deployment detail and all type of services we can see and execute similar

This application is work properly you can execute all type cubectl command…..

Thank You For Your Time…..!!!



Rupesh Jadhav

ML Learner and Computer Vision/ AWS / DevOps Tools / Cloud Computing /