Real Interview Questions for the Cloud Engineer at Ericsson
NewInterview Q&A
Q&A-1Explain the differences between Terraform's main constructs, when to use each, and how count works?
Reported in Ericsson Cloud & Platform Engineer Interview Guide 2026
The 90-second answer
The main constructs split by what they do. A resource block creates and manages an object, and Terraform tracks it in state. A data block reads an object that already exists, such as a VPC or an image, and never changes it. A module is a container: a directory of resources, variables and outputs that I call with inputs and reuse across environments. variable, output and locals are the interface: inputs, values exported to callers, and named intermediate expressions. provider configures the API client that resources use.
For multiple instances of one resource, count and for_each both create a list of objects. count takes a number and addresses instances by integer index. for_each takes a set of strings or a map and addresses them by key. I use for_each almost every time, because count has a failure mode that reaches production.
How count works
count gives each instance an index, so aws_subnet.private[0], [1], [2]. Terraform stores these addresses in state. Remove an element from the middle of a list driving count and every later index shifts, so Terraform plans to destroy and recreate the instances that were not removed.
variable "az_names" {
type = list(string)
default = ["eu-north-1a", "eu-north-1b", "eu-north-1c"]
}
# count: addresses are [0], [1], [2]
resource "aws_subnet" "by_index" {
count = length(var.az_names)
availability_zone = var.az_names[count.index]
cidr_block = cidrsubnet("10.0.0.0/16", 8, count.index)
vpc_id = aws_vpc.main.id
}
# for_each: addresses are ["eu-north-1a"], ["eu-north-1b"], ...
resource "aws_subnet" "by_key" {
for_each = toset(var.az_names)
availability_zone = each.key
cidr_block = cidrsubnet("10.0.0.0/16", 8, index(var.az_names, each.key))
vpc_id = aws_vpc.main.id
}Trace: the list is ["a", "b", "c"]. Delete "b". With count, by_index[1] now points at "c", so Terraform plans to update [1] in place and destroy [2]. The subnet for "c" gets destroyed and recreated. With for_each, the plan is one destroy of by_key["b"] and nothing else.
When to use each
| Need | Use |
|---|---|
| One optional object, on or off | count = var.enabled ? 1 : 0 |
| Fixed-size set of identical things that never reorder | count |
| Collection keyed by name, IDs, or anything that can be removed | for_each |
| Read existing infrastructure | data |
| Reuse a group of resources | module |
count is still correct for the on/off toggle. Using count with a list of names is where the problems start.
Limits to state out loud
Both meta-arguments need their values known at plan time. You cannot build a for_each key from an attribute of a resource that is not created yet, unless the key comes from a known input. for_each keys must be unique strings, and a map's values can be any type. You cannot combine count and for_each on the same resource block. A count or for_each on a module behaves the same way, and changing the address of a module instance also causes destroy and recreate, so use moved blocks (Terraform 1.1 and later) when refactoring addresses.
What I would check in review
Run terraform plan and read the must be replaced lines. A replacement the change does not explain is almost always an index shift. For a refactor from count to for_each, write moved blocks first so the plan shows moves, not replacements.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-2Write find and grep commands from memory?
Reported in Ericsson Cloud & Platform Engineer Interview Guide 2026
The 90-second answer
I'd write the common forms without looking anything up, and I'd check the flags I'm less sure of on the box before trusting them in a script. The two tools answer different questions: find selects files by metadata (name, type, age, size), and grep selects lines by content. Most real tasks chain them.
find /etc -maxdepth 2 -type f -name '*.conf'
find /var/log -type f -name '*.log' -mtime -1 -size +100M
find . -type f -name '*.yaml' -exec grep -l 'replicas:' {} +
grep -rn --include='*.yaml' 'image:' deploy/
grep -Ein 'error|timeout' app.log | tail -n 50What each one does:
| Command | Meaning |
|---|---|
find -name '*.conf' | pattern is quoted so the shell doesn't expand it first |
-mtime -1 | modified less than 24 h ago (+1 means more than 24 h ago) |
-size +100M | larger than 100 MiB |
-exec ... {} + | batches many files into one grep call, far cheaper than \; |
grep -r --include | recurses and filters by filename glob |
grep -E / -i / -n / -l / -c | extended regex, case-insensitive, line numbers, filenames only, counts |
Failure modes I watch for.
Filenames with spaces or newlines break find | xargs grep. The safe form is find ... -print0 | xargs -0 grep -l 'OOMKilled'. Without -0 the pipeline quietly searches the wrong paths and still exits 0.
grep exit status matters in scripts: 0 means a match, 1 means no match, and 2 means an error such as an unreadable file. if grep -q pattern file treats 1 and 2 the same way unless you check $? explicitly. A health check that gets 2 back from a permissions problem will read as "not found" and pass or fail for the wrong reason.
Portability: BusyBox (common in Alpine-based images) implements a subset of these. grep -P (Perl regex) exists only in GNU grep, so I'd avoid it in anything that runs in a minimal container. I'd check find --version or busybox find --help rather than assume.
Why I'd still check the man page. Writing from memory is fine for -name, -type, -exec and -l. For anything involving -newermt, -regex dialect or grep -P, I'd confirm on the target host. Being wrong about a flag costs a minute in an interview and a bad deletion in production, so I'd say which I'm confident about and which I'd verify.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-3Walk through Ansible roles and the modules you have used?
Reported in Ericsson Cloud & Platform Engineer Interview Guide 2026
I split Ansible into one role per component I operate, and keep playbooks thin: they choose hosts, set a few variables and include roles. The roles I have written most are node preparation, cluster bootstrap and tenant setup on OpenStack. The modules that do most of the work are ansible.builtin.template, ansible.builtin.systemd_service, ansible.builtin.uri, ansible.builtin.wait_for, ansible.builtin.assert, and kubernetes.core.k8s for applying manifests. I always write fully qualified collection names, so the source of each module is obvious in review.
Role layout for node preparation:
roles/node_prep/
defaults/main.yml # overridable knobs such as ntp_servers
vars/main.yml # fixed internals, not meant to be overridden
tasks/main.yml
handlers/main.yml # restart chronyd, reload sysctl
templates/chrony.conf.j2
meta/main.ymlPlaybook that calls it:
- hosts: workers
become: true
serial: 10
roles:
- role: node_prep
vars:
ntp_servers: [ntp1.corp.example, ntp2.corp.example]Tasks, with the assert doing the early check:
- name: Render chrony config
ansible.builtin.template:
src: chrony.conf.j2
dest: /etc/chrony.conf
mode: "0644"
notify: restart chronyd
- name: Fail before kubelet does
ansible.builtin.assert:
that: ansible_facts['swaptotal_mb'] == 0
fail_msg: "swap is enabled; kubelet refuses to start by default"Why the layout matters: defaults is the override surface, so a caller can change ntp_servers without touching the role. Putting internals in vars keeps them out of that surface, since role vars have higher precedence than defaults and a caller passing a same-named variable silently wins.
Failure modes I watch for:
- Handlers run once at the end of the play, so a template change across 10 hosts in one
serialbatch restarts chronyd once per host, not once per task. Forgettingserialon a service restart is how a whole node pool drops out together. commandandshellreportchangedon every run unless you addchanged_whenorcreates. I avoid them when a module exists.ansible-lintflags the unguarded cases.uriagainst a control plane endpoint right after a restart needsretriesanddelaywithuntil, or the play fails on the first refused connection.
How I detect drift: CI runs ansible-playbook --check --diff on every change, then runs the playbook a second time against the same inventory and expects changed=0. A non-zero second run means a task is not idempotent, and that is the first thing I fix.
When not to use roles: a one-off task on a single host does not need a role. Roles are for shared, versioned units. For distribution across teams I package roles into a collection, so the version pin lives in requirements.yml.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-4How would you deploy this on Kubernetes, handle rolling updates, and monitor health?
Reported in Ericsson Software Engineer – Cloud RAN Interview Review ...
The 90-second answer
First I'd establish what the workload holds. A stateless CNF or API can be a Deployment behind a Service, with the rollout gated by readiness. A component that holds cell configuration or live sessions needs a StatefulSet or a drain-first procedure, and a plain rolling update is not safe for it.
For the stateless case I ship a Helm chart per release, site-specific values, and images pinned by digest. CPU requests equal limits where pinning matters. Hugepages and SR-IOV VFs are requested through the device plugin, so the scheduler places pods only on nodes that can run them.
The rollout settings do most of the work:
spec:
replicas: 6
minReadySeconds: 20
progressDeadlineSeconds: 600
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
spec:
terminationGracePeriodSeconds: 60
containers:
- name: app
readinessProbe:
httpGet: {path: /ready, port: 8080}
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet: {path: /healthz, port: 8080}
initialDelaySeconds: 30Trace (hypothetical figures). Six replicas, maxSurge 1, maxUnavailable 0. Kubernetes starts one new pod. It must pass readiness and stay ready for 20 s before an old pod is terminated. If each new pod needs 25 s to load its configuration, the rollout takes roughly 6 × 45 s ≈ 4.5 min. If a new pod never becomes ready, the Deployment reports ProgressDeadlineExceeded after 600 s and stops. It does not roll back by itself. I roll back with helm rollback or kubectl rollout undo deployment/<name>.
A PodDisruptionBudget with minAvailable: 5 stops a node drain from removing a second pod while the rollout is already under way.
| Strategy | Use when | Cost |
|---|---|---|
| RollingUpdate | stateless, tolerates mixed versions | old and new versions serve together |
| Recreate | singleton that cannot overlap | downtime equal to startup time |
| Blue/green | instant switch and rollback needed | double capacity during cutover |
| Weighted canary | metric-gated promotion | needs ingress or mesh traffic splitting |
Monitoring. Prometheus scrapes the application and kube-state-metrics. I alert on kube_deployment_status_replicas_unavailable > 0 for 5 min, on a rising kube_pod_container_status_restarts_total, and on the service SLI itself: request success ratio and call setup time. A pod can be Ready and still drop traffic, so pod state alone is not enough. Grafana gets one dashboard per deployment, with series split by a version label so the new release can be compared with the old one during the rollout.
Failure modes I check for.
- A readiness probe that only tests the process, so traffic reaches a half-initialised pod. Detected by a error ratio spike on the new version label only.
maxUnavailableabove 0 on a two-replica deployment, which halves capacity during the rollout. Detected by the unavailable-replicas alert.- Protocol incompatibility between old and new versions while both run. Detected by per-version error ratio.
- A grace period shorter than the session drain time, so calls drop on termination. Detected by call-drop counters that rise only during rollouts.
The sequence is: pin the artefact, gate each step on readiness and an SLI, bound the disruption with a PDB and surge settings, and keep a tested rollback path.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-5What is the difference between containers and virtual machines?
Reported in Ericsson Software Engineer interview experience (November 2024)
The 90-second answer
A container is an ordinary Linux process group on the host kernel, isolated by namespaces (PID, network, mount, hostname) and limited by cgroups (CPU, memory, I/O). A virtual machine runs a full guest OS on virtual hardware, and a hypervisor such as KVM mediates the guest's access to that hardware. So the practical difference is where the isolation boundary sits: at the syscall interface for containers, and at the virtual hardware interface for VMs. Everything else (start time, density, patching, failure blast radius) follows from that.
I would state my assumption first: this is for telco cloud, where network functions run as CNFs on Kubernetes or as VNFs on OpenStack-managed VMs. The right answer depends on the workload, so I would say which one I am reasoning about.
| Property | Container | Virtual machine |
|---|---|---|
| Kernel | shared with host | own guest kernel |
| Isolation boundary | kernel syscall surface | hypervisor and virtual hardware |
| Typical start | well under 1 s | tens of seconds (boot plus guest init) |
| Per-instance overhead | process-level | full guest OS plus hypervisor state |
| Live migration | not native | supported (e.g. KVM live migration) |
| Kernel patching | host-wide, affects all tenants | per guest |
Hypothetical sizing, to make it concrete: on a 64 GB host, a 2 GB application as a container packs about 30 instances with headroom. As a VM with roughly 0.5 GB of guest OS overhead, the same host fits about 25. The gap is real but rarely the deciding factor. Isolation and lifecycle usually decide it.
Trade-offs and when not to use each
Containers win on fast scaling, density and image-based delivery. Their weakness is the shared kernel: a kernel exploit crosses tenants, and the kernel version is fixed by the host. VMs win when tenants need separate kernels, when you need live migration during maintenance, or when a vendor certifies a specific OS. Their costs are slower boot and more memory per instance.
Telco packet processing complicates this. SR-IOV virtual functions, DPDK, hugepages and CPU pinning all work in both models, but the NUMA and pinning configuration is what actually breaks performance. Real-time kernel requirements can push a function to a VM or bare metal even when a container would be my first choice. Kata Containers is a middle option: a container interface with a lightweight VM boundary underneath.
Failure modes I would check
A container without memory limits can let one workload OOM-kill its neighbours. Detect it with kernel OOM log entries and rising restart counts on the pod. A VM on an overcommitted host shows high steal time inside the guest (the steal column in /proc/stat or top), which looks like random latency spikes in the application. Those two symptoms point at opposite layers, so check which one you are seeing before changing anything.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-6What are the primary differences between a Kubernetes Deployment and a StatefulSet?
Reported in Ericsson Cloud Engineer Interview Questions & Guide 2026
The 90-second answer
Both controllers keep a set of identical pod templates running and replace failed pods. The difference is identity. A Deployment treats pods as interchangeable: names are random, any replica can serve any request, and storage is either absent or shared. A StatefulSet gives each pod a stable identity that survives rescheduling: an ordinal name (pg-0, pg-1, pg-2), a stable DNS record through a headless Service, and its own PersistentVolumeClaim that follows the ordinal. I use a Deployment for stateless services. I use a StatefulSet when a replica must be addressed by name or must keep its own data, such as a clustered database member, a broker node or a session store with per-node state.
The mechanics an interviewer will follow up on:
| Aspect | Deployment | StatefulSet |
|---|---|---|
| Pod names | random suffix, e.g. api-7d9f5c-x2k1 | ordinal, pg-0, pg-1 |
| Network identity | shared Service, load balanced | per-pod DNS: pg-0.pg-headless.<ns>.svc |
| Storage | none, or a shared claim | volumeClaimTemplates gives data-pg-0, data-pg-1 |
| Scale-up and rollout order | parallel, governed by maxSurge and maxUnavailable | ordered by default (OrderedReady): ordinal 0 must be Running and Ready before 1 starts; updates go in reverse ordinal |
| Controller objects | ReplicaSet per revision | pods created directly, no ReplicaSet |
| Rollback | ReplicaSet history | revisionHistoryLimit, plus partition for staged rollouts |
A minimal headless setup:
apiVersion: v1
kind: Service
metadata:
name: pg-headless
spec:
clusterIP: None
selector: {app: pg}
ports: [{port: 5432, name: pg}]
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pg
spec:
serviceName: pg-headless
replicas: 3
podManagementPolicy: Parallel # only when members do not need ordered bootstrap
selector:
matchLabels: {app: pg}
template:
metadata:
labels: {app: pg}
spec:
containers:
- name: pg
image: postgres:16
volumeMounts: [{name: data, mountPath: /var/lib/postgresql/data}]
volumeClaimTemplates:
- metadata: {name: data}
spec:
accessModes: [ReadWriteOnce]
resources: {requests: {storage: 50Gi}}Failure modes to name. The serviceName must point at a headless Service that exists before the pods start, or the per-pod DNS records never appear. PVCs are not deleted when the StatefulSet is deleted or scaled down, by default. That protects data but leaves storage billing running, and a scale-up later reattaches old data to a new pod. persistentVolumeClaimRetentionPolicy controls this and is GA from Kubernetes 1.32. A pod stuck in Pending on ordinal 0 blocks every higher ordinal under OrderedReady, so the rollout looks frozen; check kubectl describe pod pg-0 and the events before anything else. Node drains need a PodDisruptionBudget with maxUnavailable: 1, or a quorum-based cluster can lose two members at once.
Telecom context. For a stateful CNF I would also spread members with pod anti-affinity or topology spread constraints across failure domains, and confirm the storage class supports the access mode I asked for. A Deployment with a ReadWriteOnce claim is a common mistake: a second replica cannot mount the volume if it lands on another node.
If the workload needs neither stable names nor per-replica data, I choose the Deployment, because its rollout and rollback behaviour is simpler to operate.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-7Design a telemetry collection and monitoring platform for Ericsson's network nodes?
Reported in Software Engineer - Cloud RAN interview at Ericsson
The 90-second answer
I'd clarify three things first: how many nodes and what telemetry per node (counters, logs, traces, alarms), how fast an operator must see a fault, and whether nodes can reach the cloud directly or only through a site gateway. Assuming roughly 20,000 RAN nodes across regions, with a 60 s target to raise a fault alarm and 15-day hot retention, the design is an edge collector per site, a regional streaming tier, and a central time-series store.
Each node exposes metrics and pushes logs over OTLP or a vendor agent. An OpenTelemetry Collector at the site batches, filters and drops high-cardinality labels before anything crosses the WAN. Regional Kafka absorbs bursts when a backhaul link recovers and replays the backlog. A central Prometheus-compatible store (or Mimir/Thanos) holds the metrics; alarms are evaluated close to the data, not in the dashboard.
Arithmetic, hypothetical figures
| Quantity | Value |
|---|---|
| Active series per node | 500 |
| Nodes | 20,000 |
| Active series total | 10 M |
| Scrape interval | 30 s |
| Samples per second | 333k |
| Compressed size (~1.3 B/sample) | ~37 GB/day |
| 15-day hot retention | ~550 GB |
That is sized for sharded ingestion: one shard per region, not one giant Prometheus.
Failure modes I'd design for
- Cardinality explosion from a label such as session or UE id. Detect with
prometheus_tsdb_head_seriesgrowth and cap series per target at the collector. - Backhaul outage. Node buffers must hold the outage: at 2 KB/s per node, 6 hours is about 43 MB, so size edge disks for that, and alert on collector queue depth before data is dropped.
- Scrape pile-up when a region restarts. Stagger scrape offsets and rate-limit remote_write so recovery does not saturate the central store.
- Silent loss. Monitor the monitor: a dead-man alarm that fires when a node's heartbeat series is absent for 3 scrape intervals.
Trade-offs
Pull (Prometheus scrape) is simpler and gives free up/down signals, but NAT and firewalls at edge sites make push via collector the practical default. Logs and traces should not share the metrics store; they have different retention and query shapes.
I'd keep alarm rules versioned in Git and deployed per region, so a bad rule rolls back like any other change.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-8What is cloud-native, and what advantages does a microservice architecture have over a classic architecture?
Reported in Cloud-Native and Mentoring
The 90-second answer
Cloud-native means building and running software so it exploits what a cloud platform gives you: elastic capacity, declarative infrastructure, automated restarts and rollouts, and pay-per-use resources. It is less about where the code runs and more about the operating model: small units that can be deployed, scaled and failed independently, described as code, and observable by default. The Cloud Native Computing Foundation's definition centres on containers, service meshes, microservices, immutable infrastructure and declarative APIs. I'd add that a team which only lifts a monolith onto a VM is not cloud-native, however the marketing reads.
Microservices give you independent deployment and independent scaling by business capability, at the cost of a distributed system. A classic monolith gives you one deployable, one database transaction boundary and in-process calls. Both are legitimate. The question is whether your team and load profile justify paying for the network.
What you gain
- Independent release cadence. A team ships its service without a coordinated release train.
- Targeted scaling. If the call-admission path needs 12 replicas and the reporting path needs 2, you run 12 and 2 instead of 12 copies of everything.
- Fault isolation, if you design for it. A slow recommendation service should degrade a page, not take down the checkout.
- Technology fit per service, within limits your platform team sets.
What it costs
Every in-process call becomes a network call. A monolith method call costs tens of nanoseconds. An RPC across a cluster network is typically hundreds of microseconds to a few milliseconds before serialisation and retries are counted. Here is a worked trace for one user request that fans out to three services in sequence, with hypothetical but realistic figures:
| Hop | Monolith (in-process) | Microservices (gRPC, same zone) |
|---|---|---|
| Gateway to order service | 0 ms | 1.2 ms |
| Order to pricing | 0 ms | 1.5 ms |
| Pricing to inventory | 0 ms | 1.5 ms |
| Serialisation and deserialisation, 3 hops | ~0 ms | ~2 ms |
| Total added network time | 0 ms | ~6 ms |
Six milliseconds is rarely the problem. The problem is that p99 is set by the slowest hop, so with three hops each at p99 of 40 ms and a 2 s client timeout, one slow dependency pushes tail latency and triggers retries that multiply load. That is the failure mode to name in an interview.
Other costs you should name without being asked: distributed transactions are gone, so you use sagas or outbox patterns and accept eventual consistency; debugging needs distributed tracing (OpenTelemetry context propagation) rather than a stack trace; and version skew between services becomes a contract-testing problem.
When I would not split
A small team, a single bounded context, or a workload with strong cross-entity transactional invariants is better served by a modular monolith. Splitting before you know the seams gives you a distributed monolith: services that must deploy together and fail together, with the network cost of both.
Failure modes I would watch for
- Retry storms: a dependency at 500 ms p99 with a 3-attempt client policy can triple its inbound load at the moment it is weakest. Use timeouts, jittered backoff and a circuit breaker.
- Chatty call graphs: detect with trace fan-out per request; a single user action touching 15 services is a design smell.
- Missing readiness probes: a pod that accepts traffic before its cache is warm causes cold-start latency spikes during rolling updates.
In an Ericsson context I would tie this to the platform: the benefit is only real if the service runs on a Kubernetes platform with health probes, autoscaling on a meaningful metric, and CI that tests each service's contract independently.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-9Explain Kubernetes conceptually, and how do you write it?
Reported in Ericsson Software Engineer Interview Guide (2026)
The 60-second answer
Kubernetes is a set of control loops around a desired-state store. You declare what should run, for example a Deployment with three replicas of an image. The API server persists that object in etcd, and controllers keep the cluster's actual state matching it. Nothing is a script that runs once. Each controller watches its objects, compares spec with status, and makes one change per pass.
The objects that matter for a network function workload:
- Pod: the smallest schedulable unit. One or more containers sharing a network namespace and an IP.
- ReplicaSet: keeps N identical pods alive.
- Deployment: owns ReplicaSets, so a template change becomes a rolling replacement.
- Service: a stable virtual IP and DNS name in front of pods selected by label.
- ConfigMap / Secret: configuration, injected as env or files.
The control plane has four parts. kube-apiserver is the only component that talks to etcd. kube-scheduler binds pending pods to nodes using resource requests and constraints. kube-controller-manager runs the Deployment and ReplicaSet controllers. kubelet on each node starts containers through the container runtime and reports status back.
Writing it
You write YAML manifests and apply them declaratively with kubectl apply -f.
apiVersion: apps/v1
kind: Deployment
metadata:
name: telemetry-collector
namespace: telco-obs
spec:
replicas: 3
selector:
matchLabels:
app: telemetry-collector
template:
metadata:
labels:
app: telemetry-collector
spec:
containers:
- name: collector
image: registry.example.com/collector:2.4.1
ports:
- containerPort: 9100
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: telemetry-collector
namespace: telco-obs
spec:
selector:
app: telemetry-collector
ports:
- port: 9100
targetPort: 9100apps/v1 requires spec.selector to match the template labels, and the API server rejects the apply if they differ. spec.selector is immutable after creation, so a wrong selector means deleting and recreating the Deployment.
Trace of one apply
kubectl applysends the objects to kube-apiserver, which validates them and writes them to etcd with a newresourceVersion.- The Deployment controller sees the new object and creates a ReplicaSet, named with a hash of the pod template.
- The ReplicaSet controller creates three Pod objects with no
nodeName. - The scheduler filters nodes with 250m CPU and 256Mi memory free, scores the remainder, and binds each pod.
- The kubelet on the chosen node pulls the image, starts the container and sets the pod to Running.
- The endpoints controller adds the pod IPs to the Service's EndpointSlice.
Trade-offs
A bare Pod is not recreated if its node dies, so use a Deployment for stateless collectors. StatefulSet gives stable pod names and per-pod volumes, which suits a database or a stateful collector with local state. DaemonSet runs one pod per node, which fits node-level agents. Helm or Kustomize handle per-environment differences. Reason from the rendered manifest, not from the template.
Failure modes and how you see them
PendingwithInsufficient cpuin events: requests exceed free capacity on every node. Checkkubectl describe pod.CrashLoopBackOff: the container exits repeatedly and the kubelet backs off up to five minutes between restarts. Readkubectl logs --previous.- No
limits.memory: one collector can OOM-kill its neighbours on the same node. - Selector or label typo: the Deployment reports zero ready pods and the Service has no endpoints.
- Edited ConfigMap: running pods keep the old values until the pod template changes, so a checksum annotation or a rollout is needed.
For CNF workloads, the default pod network is not enough for SR-IOV or high-throughput user-plane interfaces. Those need Multus or host-level device plugins, and I would confirm the exact setup against the operator's documentation before promising it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Curated: · Written: · Reviewed: