Question: 1. You will write a python program for interacting with Kubernetes, assuming that you have 1 master server and 2 worker nodes deployed (as
1. You will write a python program for interacting with Kubernetes, assuming that you have 1 master server and 2 worker nodes deployed (as shown in the lectures). You may choose how the user interacts with the program, but it must provide the following basic functionality: List all pods. Describe a pod, specified by the user. Create a pod, from an image for "nginx" or "redis", as specified by the user. Scale the number of pods of a particular type by an amount specified by the user. You may assume the pods to be scaled were created using the above functionality that makes pods for "nginx" or "redis". Execute a command on a pod, pod and command specified by the user. Deploy a pod to every node. Delete a pod, specified by the user.
Step by Step Solution
3.57 Rating (157 Votes )
There are 3 Steps involved in it
Heres a Python program using the kubectl commandline tool to interact with Kubernetes and fulfill th... View full answer
Get step-by-step solutions from verified subject matter experts
