Kubernetes Integration with Python-CGI
Task 09👨🏻💻Summer Program 2021
Task Description 📄
📌 In continuation of task 7.1 you need to Integrate Kubernetes commands that can be run through webUI created by you.
👉 This time create webUI page as such that using normal English conversation your all commands can run in the background.
Example — when we write ‘run deployment using httpd image’ then it run complete deployment command in backend.
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)
GitHub URL:
Firstly, by using the code we created a web portal where all the action is going to happen and integration of kubernetees 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 my replica
Exposing deployment
Deleting the pod
Deleting all env
Conclusion:
Therefore, from the above figures we can conclude that we can create deployment, create pod and show/expose all the deployment or delete the pod or env etc with the Kubernetes Integration with Python-CGI.
Team : Summer_6_14
-Mohammed Adnan
-Prattipati Sri Raviteja
-Mohammed Awais Ahmed
-Saami Abdul Samad