Task 09π¨π»βπ»
3 min readSep 8, 2021
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.
π This time create webUI page as such that using normal English conversation your all commands can run in 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)
- Firstly ,we normal be get few pods .
2) we delete the pods .
3)Now we get pods for task
4) kubectl create deploayment app1 β image=vimal13_webserver-php
5) After create the deployment we can get the pods .
6) and then we do svc .
7)kubectl scale deployment app1 β replicas3
for scaling the replicas according to user
8) Again we get pods
9)It describe the pod app1_id.
10) And then finally we get the pods
THANK YOUβ¦β¦.