All questions
Showing of 90What is Kubernetes and what are its main components?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Kubernetes is an open-source container orchestration platform that automates deploying, scaling and managing containerized applications. A cluster has a control plane and worker nodes that run the containers.
Control plane components:
kube-apiserverexposes the API, validates requests, and is the hub every component talks to.etcdis a distributed key-value store for cluster state and configuration.kube-schedulerassigns Pods to nodes by resource needs and constraints.kube-controller-managerruns controllers that drive actual state toward desired state.
Worker node components:
kubeletruns the Pods scheduled to its node.kube-proxymaintains the network rules that load-balance Service traffic.- The container runtime, such as containerd or CRI-O, runs the containers. Built-in Docker Engine support ended in v1.24.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Explain the difference between Pods, Services, and Deployments.
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A Pod runs your containers, a Deployment keeps the right number of Pods running, and a Service gives those Pods one stable address.
- A Pod is the smallest deployable unit. It holds one or more containers that share storage and network. Pods are ephemeral, so you rarely create them directly.
- A Deployment is a higher-level object that manages ReplicaSets and rolls out changes to Pods declaratively. It keeps the desired number of replicas running.
- A Service selects a set of Pods by label and gives them stable networking, one IP and DNS name that outlives any Pod. Other parts of the application call the Service, not Pod IPs.
The Deployment below keeps three nginx Pods running, and a Service with the selector app: nginx would send traffic to them.
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.20
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are Kubernetes namespaces and why are they used?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Namespaces partition one cluster into virtual clusters, so several teams or environments can share it. Each namespace gives its group:
- Name scoping. Names must be unique only within a namespace, so
devandprodcan each have a Service calledapi. - Environment separation. Dev, staging and prod objects are listed and deleted per namespace.
- Access control. A
RoleBindinggrants a team permissions in one namespace only. - Resource quotas. A
ResourceQuotacaps the CPU, memory and object count a namespace can use.
Pods in different namespaces can still reach each other unless a NetworkPolicy blocks them. Node and PersistentVolume objects belong to no namespace.
kubectl create namespace development
kubectl get pods --namespace=development
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are the different types of Services in Kubernetes?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Kubernetes has four Service types, and they differ in how clients reach the Service:
- ClusterIP, the default, gives the Service an internal IP that works only inside the cluster.
- NodePort also opens a static port on every node's IP, from
30000-32767by default, for clients outside the cluster. - LoadBalancer also provisions the cloud provider's load balancer in front of the Service.
- ExternalName makes cluster DNS return a CNAME for an external hostname, with no proxying.
Setting clusterIP: None makes a headless Service. DNS then returns the Pod IPs instead of one virtual IP, and StatefulSets use it to give each Pod its own DNS name.
# NodePort Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: NodePort
selector:
app: myapp
ports:
- port: 80
targetPort: 8080
nodePort: 30007
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How do you troubleshoot a pod that's not starting?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Run kubectl describe pod first, because its events usually name the cause, and then read the container logs. What you find points to one of four common problems:
- Resource constraints. A Pod stuck in
Pendingcannot be scheduled, most often because no node has enough free CPU or memory. The events show the reason, andkubectl describe nodeshows each node's capacity. - Image pull errors.
ImagePullBackOffmeans Kubernetes cannot pull the image. Check the image name and tag, registry access and the pull secret. - Configuration errors. A missing
SecretorConfigMapkeeps the container from starting, and the events name it. Bad settings, such as an invalid environment variable, usually crash the app, so checkkubectl logs --previous. - Network issues. If the app starts but cannot reach its dependencies, test DNS resolution and whether those Services have endpoints.
# Check pod status
kubectl get pods -o wide
# Describe pod for events
kubectl describe pod <pod-name>
# Check logs
kubectl logs <pod-name>
# Check previous container logs if restarting
kubectl logs <pod-name> --previous
# Check node resources
kubectl top nodes
kubectl describe node <node-name>
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is Kubernetes and why is it needed?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Kubernetes is an open-source container orchestration platform that automates deploying, scaling and managing containerized applications. Google originally developed it, and the Cloud Native Computing Foundation (CNCF) now maintains it.
It is needed because managing hundreds or thousands of containers by hand is impractical. Kubernetes does that work for you:
- It restarts failed containers and replaces unhealthy instances, which keeps applications highly available.
- It scales applications with demand and spreads traffic across the instances.
- It packs containers onto nodes by their resource requests, which leaves less capacity sitting idle.
- Its rolling updates let a new version go out with zero downtime.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a Pod and why is it the smallest deployable unit?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A Pod is the smallest and simplest Kubernetes unit: one or more containers that share a network namespace and storage. It is the smallest deployable unit because the scheduler places Pods, not containers, and the IP address belongs to the Pod.
Its containers:
- share one IP address and port space, and reach each other on
localhost - can mount the same volumes
- are scheduled together onto the same node
- start and stop together as an atomic unit
That suits tightly coupled containers, such as an app and its log shipper.
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: web-container
image: nginx:1.20
ports:
- containerPort: 80
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between a Pod and a Container?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A container runs one application process, while a Pod is the Kubernetes unit that wraps one or more containers with shared networking and storage.
A container is an isolated process, created from a container image, with its own filesystem and resource limits. Outside Kubernetes it also gets its own network stack. Kubernetes never schedules a container on its own, though. It schedules Pods, the smallest deployable unit.
Inside a Pod, the containers share one IP address and port space and can mount the same volumes. That lets a sidecar, a helper such as a log shipper or proxy, run next to the main container and reach it over localhost.
The usual Pod holds one container. Extra containers join it only when they must run and scale together.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a Deployment and how does it differ from a Pod?
What is kubectl and what are some common commands?
What are Labels and Selectors?
What is the difference between ReplicaSet and Deployment?
What is Helm and why is it used in Kubernetes environments?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Helm is the package manager for Kubernetes, much as apt is for Ubuntu or npm is for Node.js. It bundles an application's Kubernetes manifests into a reusable package called a chart.
One application needs many YAML files that differ per environment, and Helm manages them as one unit.
- Charts use Go templates, so one chart takes different values for dev, staging and production.
- Each install is a release with a stored history, so you can upgrade, roll back or uninstall it as one unit.
- A chart declares the charts it depends on, such as a database, and Helm installs them together.
- Charts are versioned and shared through repositories, so an application is portable across clusters and environments.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are the main components of Helm?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Helm has three concepts, charts, releases and repositories, plus one client, the helm CLI:
- The Helm client handles chart development, repository management and release operations. It talks directly to the Kubernetes API server.
- A chart is a package of manifest templates, metadata and default values, stored locally or in a repository.
- A release is one deployed instance of a chart, with its own name and values. Helm keeps its history for upgrades and rollbacks.
- A repository stores and shares charts. It can be public or private, and Artifact Hub lists charts from many public ones.
Installing one chart twice creates two separate releases.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a Helm Chart and what does it contain?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A Helm chart is a package containing all the resource definitions needed to run an application on Kubernetes, written as templates plus default values.
mychart/
Chart.yaml # Chart metadata
values.yaml # Default configuration values
charts/ # Dependency charts
templates/ # Kubernetes manifest templates
deployment.yaml
service.yaml
ingress.yaml
_helpers.tpl # Template helpers
.helmignore # Files to ignore during packaging
Chart.yamlholds the chart's name, version and description, and it lists the chart's dependencies.values.yamlholds the defaults the templates render with.templates/holds the Kubernetes manifest templates.charts/holds the charts this one depends on.- A
README.md, when present, documents how to use the chart.
Charts are portable and reusable across environments, because you set the configuration through values.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How do you override default values in Helm charts?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
You pass your own values with --set flags or values files at install or upgrade time. Helm merges them over the chart's defaults in a fixed order of precedence, highest first:
--seton the command line wins over everything.- A custom values file passed with
--values, or its short form-f. - When you pass several
-ffiles, a later file overrides an earlier one. - The chart's own
values.yamlsupplies the defaults and has the lowest precedence.
helm install myapp ./mychart --set replicaCount=5 --set image.tag=2.0
helm install myapp ./mychart --values custom-values.yaml
helm install myapp ./mychart -f values.yaml -f production-values.yaml
A custom values file only needs the keys you want to change:
replicaCount: 3
image:
repository: myapp
tag: "v2.1.0"
service:
type: LoadBalancer
resources:
limits:
memory: "512Mi"
cpu: "500m"
Helm merges maps deeply, so setting image.tag keeps the default image.repository. Arrays are replaced whole, so to change one item you pass the full list.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Explain the difference between helm install, helm upgrade, and helm rollback.
How do you manage Helm repositories and what are the common commands?
Explain the Pod lifecycle and its phases.
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A Pod's phase starts at Pending, moves to Running on a node, and ends at Succeeded or Failed. The status.phase field shows the current one:
Pendingmeans the cluster accepted the Pod, but one or more containers are not yet created and ready to run. It includes scheduling and image pulls.Runningmeans the Pod is bound to a node, all containers exist, and at least one is running or restarting.Succeededmeans every container exited successfully and none will restart.Failedmeans every container has terminated and at least one failed.Unknownmeans the Pod's state cannot be read, usually because the node is unreachable.
Init containers run during Pending, and container states such as Waiting and Terminated hold more detail. A failed liveness probe restarts the container under the Pod's restartPolicy, and a failed readiness probe removes the Pod from Service endpoints.
Deleting a Pod starts graceful termination. The kubelet sends SIGTERM to each container and waits up to the grace period, 30 seconds by default. Processes still running after that get SIGKILL.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How do you perform a rolling update in Kubernetes?
What is a DaemonSet and when would you use it?
Explain StatefulSets vs Deployments. When would you use each?
How do you configure resource requests and limits?
What are init containers and how are they used?
Explain the Kubernetes networking model and how pod-to-pod communication works.
How do Ingress controllers work and why are they needed?
Explain Network Policies and provide an example.
Explain the difference between Volumes, Persistent Volumes, and Persistent Volume Claims.
What are Storage Classes and how do they enable dynamic provisioning?
How do you handle persistent storage for stateful applications?
Explain RBAC in Kubernetes and how to implement it.
What are Pod Security Standards and how do you implement them?
How do you secure secrets in Kubernetes?
What are Security Contexts and how do you use them?
How do you monitor Kubernetes cluster health and performance?
What are liveness, readiness, and startup probes?
Explain Quality of Service (QoS) classes in Kubernetes.
How do you implement Resource Quotas and Limit Ranges?
What is the Horizontal Pod Autoscaler (HPA) and how does it work?
Explain ConfigMaps and Secrets. When would you use each?
What is an Ingress and how does it differ from a Service?
What are Jobs and CronJobs?
Explain the difference between Helm 2 and Helm 3.
How does Helm interact with the Kubernetes API server?
Explain Helm templating and provide a simple example.
What are Helm template functions and give examples of commonly used ones?
What is the purpose of _helpers.tpl in Helm charts?
What are global values in Helm and when would you use them?
How do you validate values in Helm charts?
What is the purpose of helm template and when would you use it?
How do you manage Helm release history and what commands are useful for this?
What is helm test and how do you implement tests in Helm charts?
How do you create and publish your own Helm repository?
What is ChartMuseum and how does it help with private Helm repositories?
What are the security considerations when using Helm?
How do you handle secrets in Helm charts securely?
How do you debug Helm deployment issues?
What are common Helm errors and how do you resolve them?
How do you recover from a failed Helm upgrade?
What is the Kubernetes Gateway API, and how is it different from Ingress?
What is a Pod Disruption Budget and when do you need one?
How do service discovery and DNS work in Kubernetes?
What are native sidecar containers, and what problem do they solve?
How do you set up Kubernetes logging?
Explain service mesh and its benefits in Kubernetes.
What are Taints and Tolerations?
Explain Kubernetes API Groups and Versions
How do you implement Blue-Green deployments in Kubernetes?
What are Helm hooks and provide examples of their usage?
How would you backup and restore etcd?
How do you upgrade a Kubernetes cluster?
How do you debug networking issues in Kubernetes?
Explain Vertical Pod Autoscaler (VPA) and when to use it.
How do you implement backup strategies for Kubernetes applications?
What is Velero and how do you use it for backup/restore?
Explain Custom Resource Definitions (CRDs) and Operators.
How do you implement multi-tenancy in Kubernetes?
What are admission controllers and how do you configure them?
How do you implement GitOps with Kubernetes?
How do you manage certificates in Kubernetes?
How do you implement cluster autoscaling?
How do you implement disaster recovery for Kubernetes clusters?
How does the Kubernetes scheduler work?
What are the security best practices for Kubernetes?
What are Helm chart best practices for production environments?
How do you implement chart dependencies and subcharts?
What are library charts and how do you create them?
How do you implement blue-green deployments with Helm?
What happens internally when you run kubectl apply?
How do you implement high availability in Kubernetes?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
Kubernetes cheatsheet
- Core Concepts01
- kubectl Essential Commands02
- Pod Management03
- Deployments & ReplicaSets04
- Services & Networking05
- Storage06
- ConfigMaps & Secrets07
- Security08
- Resource Management09
- Monitoring & Logging10
- Troubleshooting11
- Cluster Maintenance12
- + 3 more inside
- + 9 more inside
77 of 90 Kubernetes answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.