Kubernetes Integration with Python-CGI

Sri Raviteja
3 min readSep 8, 2021

--

Task 09 πŸ‘¨πŸ»β€πŸ’»

Task Description πŸ“„

πŸ“Œ In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through web UI created by you.
πŸ‘‰ This time create web UI page as such that using normal English conversation you're all commands can run in background.

Feature necessary -
πŸ‘‰ 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)

Firstly, by using the code, we created a web portal where all the action is going to happen and integration of Kubernetes takes place.

Below is the depiction of web portal:

The following are the steps where the features are added and removed, which are shown below in the images given below:

Creating deployment

Creating pod

Showing all pods

List all deployments

Showing all services

Describing all information of pod

Scaling the replica

Exposing deployment

Deleting the pod

Deleting all the environments

Therefore, the Task is achieved.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Sri Raviteja
Sri Raviteja

No responses yet

Write a response