kubectl create deployment <Deplyment-Name> --image=<Container-Image>
2. How to get all deployments in K8s?kubectl get deployments
3. How to describe the deployment?kubectl describe deployment <deployment-name>
4. How to scale the deployment?kubectl scale --replicas=10 deployment/<Deployment-Name>
5. How to expose deployment as a service?kubectl expose deployment <Deployment-Name> --type=NodePort --port=80 --target-port=80 --name=<ServiceName>
6. How to check the deployment status or rollout status?kubectl rollout status deployment/
<Deployment-Name>
Kubernetes interview question SET-01
7. Get the rollout history of deployment?kubectl rollout history deployment/<Deployment-Name>
8. How to edit the deployment?kubectl edit deployment/<Deployment-Name> --record=true
Difference between 401 vs 403
9. How to undo the roolout in deployment?kubectl rollout undo deployment/my-first-deployment
10. How to kill the existing pods and recreate new pods in a rolling fashion?kubectl rollout restart deployment/<Deployment-Name>
11. How to pause the deployment?
kubectl rollout pause deployment/<Deployment-Name>
12. Commands for kubernetes POD?
Cick Here for answer
- Interview questions for SDET/Automation Testing:
- Top 21 GIT interview questions
- Top 30 Selenium Webdriver Interview Q&A
- Top 20 API Testing Interview Q&ASelenium Interview Question SET-4
- Selenium Interview Question SET-1
- Selenium Interview Question SET-2
- Selenium Interview Questions SET-3
- Selenium Interview Question SET-4
*************************************************
API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign
Java Related Interview Question Set
https://automationreinvented.blogspot.com/search/label/Java
GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
Thank you for sharing this post.
ReplyDeletedevops Online
Training
Thanks for sharing this great article..Its really nice and useful for us.
ReplyDeletedevops online training
Hi, Thank you for this informative blog, I have just started to learn devops online training and this interview questions blog is definitely very helpful for me. Thank you for this informative blog.
ReplyDelete