Member-only story

Top 10 Common DevOps/SRE Interview Questions and Answers on Kubernetes Best Practices

techwithpatil
3 min readSep 23, 2024

--

  1. How Do You Set Resource Requests and Limits in Kubernetes?

Resource requests ensure a minimum amount of resources (CPU/Memory) for a container, while limits enforce the maximum resources a container can consume. This helps with efficient resource allocation and prevents resource contention.

Example:

resources:
requests:
memory: "256Mi"
cpu: "500m"
limits:
memory: "512Mi"
cpu: "1000m

Free Article Link https://blog.techwithpatil.com/blogs/medium-articles/devops-sre-interview-questions-and-answers/top-10-common-devops-sre-interview-questions-and-answers-on-kubernetes-best-practices

2. Why is Namespace Important in Kubernetes?

Namespaces allow you to partition a single Kubernetes cluster into multiple virtual clusters, providing isolation between different teams or projects. They are useful for managing resource quotas and policies.

Example:

kubectl create namespace dev

3. How Do You Ensure High Availability in Kubernetes?

Use multi-zone clusters with redundant control plane components. Distribute workloads across multiple nodes and regions, ensuring no single point of failure.

Example:

  • Deploy an application using a Deployment with replicas spread across nodes

--

--

techwithpatil
techwithpatil

Written by techwithpatil

DevOps & Site Realiability Interview | Cloud | AI Agent | Software Automation https://beacons.ai/techwithpatil

No responses yet