Kubernetes Scenario Based Interview | Kubernetes Interview Questions and Answers for Experienced

  Рет қаралды 16,330

LogicOps Lab

LogicOps Lab

4 ай бұрын

Kubernetes Scenario Based Interview | Kubernetes Scenario Interview Questions | Kubernetes Interview Questions and Answers for Experienced | 039
Hey folks,
Welcome back to another video in the series of DevOps Interviews. This is the 39th video in this series. This is a complete 30-minute-long technical video purely on #kubernetes #devops #devopsinterview etc. Pick a pen and paper, and note down the questions we have covered in this video.
LogicOps Lab - / @logicopslab
LogicOps Lab - Hindi - / @logicopslabhindi
GitHub - bit.ly/3lsUjdE
Twitter - ​ / logicopslab
Instagram - bit.ly/3tJ9Jyf
Facebook - bit.ly/3ziMoVq
Like | Share | Subscribe | Follow
kubernetes interview questions and answers for experienced,kubernetes interview questions,kubernetes interview questions and answers,kubernetes,devops kubernetes,devops kubernetes interview questions,kubernetes scenario based questions,kubernetes scenario interview questions,kubernetes troubleshooting scenarios,kubernetes scenario based interview questions,devops kubernetes project,kubernetes questions and answers,kubernetes questions,kubernetes interview
NOTICE/DISCLAIMER - We take permission/consent from the Candidate/Agency/Organisation before posting these interviews. Without consent/permission, we DO/WILL NOT publish any content in public.

Пікірлер: 83
@nasirenevoylune3113
@nasirenevoylune3113 4 ай бұрын
List of questions from the interview: Can you walk me through the CI/CD pipeline you use in your current project, specifically related to Kubernetes? How do you perform rolling updates for your application in Kubernetes without causing downtime? When you create a new version of your Docker image, what steps do you follow? Have you ever worked with horizontal pod autoscaling (HPA) in Kubernetes? If so, how do you set it up? Explain the purpose of persistent storage in Kubernetes and why it's needed. Describe a scenario where you would use Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) in Kubernetes. Have you ever used multiple containers within a single pod in Kubernetes? Provide an example. How do you manage secrets in your Kubernetes project, and what role does Kubernetes Secret play? Can you explain a scenario where you would use a service mesh in Kubernetes, especially in terms of authentication and authorization? Why are Pod Security Policies important in Kubernetes, and how would you implement them to enhance security? Do you work with resource limits and resource quotas in your Kubernetes setup? If yes, how do you set them up? How would you implement horizontal pod scaling based on custom metrics specific to your application's performance indicators? Explain a scenario where pod priority and preemption in Kubernetes would be useful, and have you ever implemented this? Can you differentiate between Kubernetes Jobs and Cron Jobs, and when would you use each? In what situations would you use StatefulSets in Kubernetes, and what benefits do they offer over Deployments? How can you change the number of replicas for a ReplicaSet in Kubernetes, and what should you check for if the replicas are not scaling as expected?
@Cloud_Insights
@Cloud_Insights 4 ай бұрын
🙏🙏🙏
@arshadsiddieque7097
@arshadsiddieque7097 4 ай бұрын
This was the pure value addition. Thanks mate.
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Indeed,@@arshadsiddieque7097
@user-jm5ge9ry2s
@user-jm5ge9ry2s 3 ай бұрын
🙏
@saubhagyabhanja7922
@saubhagyabhanja7922 3 ай бұрын
Answer for 2nd question rolling update is totally wrong
@mahi_mad
@mahi_mad 5 күн бұрын
Am i the only one who feels like this guy is more like reading the answers than answering?
@buddytintin
@buddytintin 4 ай бұрын
Amazingly executed. Thanks to the efforts you put in.
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Appreciate your support.
@siddarthd9774
@siddarthd9774 Ай бұрын
This is called perfect interview and it will be useful for the currently working devops engineers to understand the kubernetes in broad manner....
@LogicOpsLab
@LogicOpsLab Ай бұрын
Made my day! Appreciate it.
@Cloudnp9458
@Cloudnp9458 18 күн бұрын
24:25. When you preferred statedulsets over deployment. Ans. In case of database deployment. Like mysql application. Statefulsets are used for deploying stateful application like database and distribution system and all. Pods in statefulsets have stable network identity , i.e they have a permanent name and can be accessed using persistence dns names. Also when you scale the statefulsets , process is more controlled and seqiential. Statefulsets can automatically manage the pvc for each pod, providing persistent storage. While deployment is for stateless like webserver, mainly suited for horizontal scaling application , where microservices replicas are interchangeable. Given random names
@JitendraYadav-lh2yh
@JitendraYadav-lh2yh 3 ай бұрын
thanks for sharing question great work
@LogicOpsLab
@LogicOpsLab 3 ай бұрын
Means a lot, Jitendra.
@Cloudnp9458
@Cloudnp9458 18 күн бұрын
Limits and resource quota set up using crds. Whenever there is situation of fair resource allocation and preventing resource exhaustion, we use these resource quota and limits. We define resource quota by checking cpu,ram and other resources . Once this is done we attach resource quota to certain namespace, whatever we have.
@jalandharbehera99
@jalandharbehera99 2 ай бұрын
Wow bro, really its too much informative videos ❤
@LogicOpsLab
@LogicOpsLab 2 ай бұрын
Glad you liked it!
@udaykumar8177
@udaykumar8177 4 ай бұрын
Thank you for such a informative video
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Glad you liked it 🙏🏻
@udaykumar8177
@udaykumar8177 4 ай бұрын
For the last bonus question the answer provided by the candidate is right ? or something else is there ?@@LogicOpsLab
@user-md6lp8hj6c
@user-md6lp8hj6c 3 ай бұрын
Thank you for sharing.
@LogicOpsLab
@LogicOpsLab 3 ай бұрын
Glad it was helpful.
@RohitDeployer
@RohitDeployer 4 ай бұрын
It was really good one dude we request you to share more videos on this person really he is verry confident and potential person :)
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Thanks for the support, Rohit. Folks like these are not easily reachable. It's an old interview, after 3-4 months of mail chains he gave me permission to post this interview.
@RohitDeployer
@RohitDeployer 4 ай бұрын
Ohh but it's really great 👍 👌
@venkateshwaran6895
@venkateshwaran6895 4 ай бұрын
Great Questions! Good job dude!
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Thanks a lot, mate!
@sumeght1878
@sumeght1878 Ай бұрын
As a dev I am impressed by how smoothly each consequent questions is realted to the preceeding one. Helps one to link the dots and understand everything. Great work
@LogicOpsLab
@LogicOpsLab Ай бұрын
This is really supporting. Means a lot, mate.
@sudheersahu7646
@sudheersahu7646 4 ай бұрын
i am also preparing for an interview so these is good question
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Thanks a lot, mate! Best Wishes!
@dvssmallikarjun98
@dvssmallikarjun98 4 ай бұрын
if you don't mind, can you add sections for each question in the future videos so it will be easy for the audience to navigate through each question asked. Thanks!
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Sure, I will.
@user-sc2gl7sk6t
@user-sc2gl7sk6t Ай бұрын
Hi Mike, Myself dinesh from London It's an amazing video who is eagerly looking for DevOps culture interviews this video will be quite enough for K8s concept. Almost You guys covered up on major topics in K8s. The all the questions was crazy and answers had short and crispy. Please do your work for long to be frank I'm telling its very useful for me. Keep rocking !.....If possible can you do AWS & Azure related scenario based it will be really helpful for everyone thanks mate !.....all the best for your future.!.....
@LogicOpsLab
@LogicOpsLab Ай бұрын
Thanks a lot for such kind words.
@sravanipaladugu8539
@sravanipaladugu8539 23 күн бұрын
Very useful video, thanks for doing this 😊
@LogicOpsLab
@LogicOpsLab 23 күн бұрын
Appreciate the feedback.
@shoban4104
@shoban4104 3 ай бұрын
I am working in infra support monitoring. I dnt hv knowledege to give ans i am attnding interviewa these days asking mostly these type questions it helps me alot
@LogicOpsLab
@LogicOpsLab 3 ай бұрын
Glad it was helpful.
@sindhuravemuri2498
@sindhuravemuri2498 2 ай бұрын
really helpful!
@LogicOpsLab
@LogicOpsLab 2 ай бұрын
Glad you liked it.
@VivekMishra-wp5zh
@VivekMishra-wp5zh 25 күн бұрын
Answer to the bonus question would be when we have applied hpa to an app with minimum replicas 3 and then if we try to scale it down to 2 it won't scale down
@solvingtechmaze
@solvingtechmaze 4 ай бұрын
One of the best kubernetes scenario based interview so far.
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Thank you for all the support
@mohammedilyas3033
@mohammedilyas3033 4 ай бұрын
@bouns question: at run time using $kubectl scale --replicas=2 deployment.yaml ( as run time take more priority then declarative manifesto). I believe once u hit this command kube-scheduler take ur request and gives to replication controller and controller read imperatives as two replicas. So we would have two pods when u check kubectl get pods
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Good answer. Now, what happens if even after this command things don't work as expected? What would be your thought process?
@mohammedilyas3033
@mohammedilyas3033 4 ай бұрын
@@LogicOpsLab not sure ,if we do any modifications on pod metadata does it work ? But my assumption is replicaset functionality is to maintain the desired state of pods if we request two via run time it must be two pods running on cluster. Pls share correct approach to dis scenario.
@rohanekar
@rohanekar 4 ай бұрын
I am also waiting for the ans
@udaykumar8177
@udaykumar8177 4 ай бұрын
Waiting for the ans @@LogicOpsLab
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
​ @mohammedilyas3033 @@rohanekar You go to the kube-system, there you check the kube-controller, see if everything is correct or not. Fix it, restart everything, it will work.
@AmitVerma-lo6rk
@AmitVerma-lo6rk 4 күн бұрын
Nice interview 👍🏻
@LogicOpsLab
@LogicOpsLab 4 күн бұрын
Glad you liked it
@Knockout_Extreme
@Knockout_Extreme 4 ай бұрын
Good interview
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Appreciate the feedback.
@Knockout_Extreme
@Knockout_Extreme 4 ай бұрын
@@LogicOpsLab i have interview on Monday, could you please help me with some document with scenario based questions for terraform, kubernetes, git, docker, Linux?
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
I'd suggest a mere document won't help. Just go through all the relevant video and learn. You will forget easily, while listening them like a podcast will help you better.
@RohitDeployer
@RohitDeployer 4 ай бұрын
If possible pls rollout CICD QNAs woth this guy it would be verry great
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Will try my best, mate. Cheers.
@ankitvarshney5989
@ankitvarshney5989 4 ай бұрын
how we do canary deployment in argocd?
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
To perform canary deployments in Argo CD, you can follow these general steps: 1. Ensure that Argo CD is properly installed and configured in your Kubernetes cluster. 2. Define your application manifests in a Git repository. These manifests will include multiple versions of your application for canary deployment. 3. Create Argo CD Application custom resources for each version of your application. Specify the desired replicas, service names, and any other relevant settings. 4: Use annotations in your Kubernetes manifests to define canary deployment strategies. Argo CD supports annotations like `argocd.argoproj.io/rollouts`, where you can specify canary deployment settings. This is just a generic thing, this can be modified accordingly. 5. Trigger the sync process in Argo CD to apply the changes and start the canary deployment. Here's a simplified example of how you might use annotations for canary deployment: ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: my-app annotations: argocd.argoproj.io/rollouts: '{"blueGreen":{"activeService":"my-app-active","previewService":"my-app-preview"}}' spec: replicas: 5 template: metadata: labels: app: my-app spec: containers: - name: my-app image: myregistry/my-app:1.0 ``` In this example, the `argocd.argoproj.io/rollouts` annotation specifies a blue-green deployment strategy with active and preview services. Refer to the Argo CD documentation for the latest and detailed information.
@ankitvarshney5989
@ankitvarshney5989 4 ай бұрын
@@LogicOpsLab Thanks bro
@akkyintish2519
@akkyintish2519 4 ай бұрын
All questions are goods but one question u ask on k8s no sense between k8s jobs and cron jobs
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
Timestamp?
@user-xl8pl8mv6z
@user-xl8pl8mv6z 2 ай бұрын
how many years of experience he have on kubernetes ?
@LogicOpsLab
@LogicOpsLab Ай бұрын
Less than 3 yrs, IIRC.
@Mr.X_001
@Mr.X_001 2 ай бұрын
What is the experience of that guys giving interview?
@LogicOpsLab
@LogicOpsLab 2 ай бұрын
I always discuss the total experience in IT and relative experience in DevOps and Cloud in the first 30 seconds of the video. Looks like people are skipping the intro 😕
@pavankumarchinthapalli9298
@pavankumarchinthapalli9298 2 ай бұрын
hi
@LogicOpsLab
@LogicOpsLab 2 ай бұрын
Hello
@kesavreddy7530
@kesavreddy7530 4 ай бұрын
Selected ha bro?
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
What do you think?
@Knockout_Extreme
@Knockout_Extreme 4 ай бұрын
Selected I guess
@LogicOpsLab
@LogicOpsLab 4 ай бұрын
🤝🏻
@sagarsonawane7566
@sagarsonawane7566 3 ай бұрын
Please add answer audio not useful
@LogicOpsLab
@LogicOpsLab 3 ай бұрын
👍🏻
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 3,1 МЛН
Угадайте концовку😂
00:11
Poopigirl
Рет қаралды 4,1 МЛН
Kubernetes Crisis: The 5 Must-Know Troubleshooting Scenarios!
10:36
Tech with Satyajit Das
Рет қаралды 24 М.
Excellent Cloud-DevOps Fresher Interview with Hands-On | Episode 4
29:29
Tech With Prerit
Рет қаралды 4,5 М.
Kubernetes interview questions & Answers
1:22:23
Deekshith SN
Рет қаралды 68 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 3,1 МЛН