dharshan r
2 min readAug 22, 2021

--

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

Team Task

Kubernetes Integration with Python-CGI

Task Description πŸ“„

πŸ“Œ In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through webUI created by you.

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)

Kubernetes Integration with Python-CGI

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 users.
  • Run deployment using image and name given by the user.
  • Expose services on given user input port number.
  • Scale the replica according to user needs.
  • Delete complete environment created.
  • Delete specific resources given by the user.

Prerequisite

  • Linux OS
  • Minikube installed
  • Should know basics of Kubernetes

Start mini kube setup using minikube start command

>> minikube start

Use minikube status command to check minikube status

>> minikube status

We can see that minikube is running in VM box

This is a front end code

Backend python code

Note: Give all Credential to admin.config file in local directory

UI output page here we can run any commands

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

Thank you for reading!!

--

--