kubectl run <desired-pod-name> --image <Container-Image> --generator=run-pod/v1
2. How to get lists of all Pods?kubectl get pods
How to get list of pods which provide Node information of pods
3.
on which Pod is running?kubectl get pods -o wide
4. How to get describe of Pod for troubleshooting?kubectl describe pod <Pod-Name>
5. How to delete pod in Kubernetes?kubectl delete pod <Pod-Name>
*What commands of GIT we need to know for DevOps and SDET?
Click here for Answer
6. How to expose pod as service to access application from internet?kubectl expose pod <Pod-Name> --type=NodePort --port=80 --name=<Service-Name>
7. How to get service information in Kubernetes?kubectl get service
8.How to access the Pod logs?kubectl logs <pod-name>
9. How to connect to a container in Pod and execute commands?kubectl exec -it <pod-name> -- /bin/bash
ls cd /usr/....... cat test.html exit
# if you want to execute individual commandskubectl exec -it my-first-pod ls
10. How to get YAML output of Pod and Service?
kubectl get pod my-first-pod -o yaml
11. How to delete a Pod?
kubectl delete pod <Pod name>
12. What are the Docker commands mostly asked in DevOps-SDET-QA interview?
Click for answer
Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, for both declarative configuration and automation.
- 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
No comments:
Post a Comment