Friday, 4 September 2020

Top 11 Kubernetes interview question and answers for SDET Devops QA SET-01?














Below is the list of Kubernetes interview questions on Pod, more will come in coming days so stay tuned and keep learning. Most asked k8s Interview Questions for DevOps in 2020.

As QA role in DevOps is quite vast so now it seems to be mandatory for Automation testers to learn Docker and Kubernetes. In fact in many interviews they are asking basic K8s commands.


1. How to create a Pod?
kubectl run <desired-pod-name> --image <Container-Image> --generator=run-pod/v1

2. How to get lists of all Pods?

kubectl get pods

3.
How to get list of pods which provide Node information of pods 
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 commands
kubectl 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.  
Want to learn more? ...Check below link for more java interview question:
 

*************************************************

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

All Time Popular Posts

Most Featured Post

Introduction to Web Testing with Playwright

  Introduction to Web Testing with Playwright 📌  Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 📌  YouTube channel:  https://lnkd.in/gGUG...