kubectl create -f replicasetrs-test.yml
2. How to get list of ReplicaSet?kubectl get replicaset
3. How to describe newly created ReplicaSet?
kubectl describe rs/<replicaset-name>
Kubernetes Deployment related commands:
Click here for commands
4. How we can verify owner of the Pod?kubectl get pods <pod-name> -o yaml
"name" tag under "ownerReferences"
Check the
5. How to expose replica set as a service?kubectl expose rs <ReplicaSet-Name> --type=NodePort --port=80 --target-port=8080 --name=<ServiceName>
Click for Job Openings and Apply
6. How to delete replica set?
kubectl delete rs <ReplicaSet-Name>
10. Commands for kubernetes POD?
Cick Here for answer
A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods.
7. What is the use of replica set?
8. What is POD Selector?
The.spec.selector
label selector.These are the labels which is used to identify potential Pods to acquire.In the ReplicaSet,.spec.template.metadata.labels
must matchspec.selector
, or it will be rejected by the API.
9. How to set number of pods concurrently?
You can specify how many Pods should run concurrently by setting .spec.replicas
. The ReplicaSet will create/delete its Pods to match this number.If you do not specify .spec.replicas
, then it defaults to 1.
REVISION:
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. Get the rollout history of deployment?
kubectl rollout history deployment/<Deployment-Name>
13. How to edit the deployment?
Click Here For Answer
14. How to create deployment in Kubernetes?kubectl create deployment <Deplyment-Name> --image=<Container-Image>
- 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