Skip to content
tezvyn:

Search

Find a bite, explore a topic or look for a role.

Results for Kubernetes

Bites 384

Docker & Kubernetes1 min read

tolerationSeconds and graceful eviction on NoExecute

TolerationSeconds is how long a tolerating pod may stay after the taint applies; once it elapses eviction starts, then terminationGracePeriodSeconds governs the SIGTERM-to-SIGKILL window.

Docker & Kubernetes1 min read

Required vs preferred node affinity rules

Required is a mandatory filter, preferred is a weighted preference, and IgnoredDuringExecution means rules apply only at scheduling time.

Docker & Kubernetes1 min read

What are the three Pod QoS classes?

Guaranteed when every container sets equal requests and limits for CPU and memory; Burstable when requests are set but not matching limits; BestEffort when none are set; lower classes are evicted first under…

Docker & Kubernetes1 min read

Requests vs limits for CPU and memory?

Requests guide scheduling and reservation, limits cap usage; exceeding a CPU limit throttles the container, while exceeding a memory limit triggers an OOMKill since memory is incompressible.

Docker & Kubernetes1 min read

How do you resize a live PersistentVolume?

Edit the PVC's requested size upward; the StorageClass must set allowVolumeExpansion true and the CSI driver must support expansion, ideally online so no Pod restart is needed; shrinking is not allowed.

Docker & Kubernetes1 min read

How does a StatefulSet recover a Pod after node failure?

Node goes NotReady, Pod is marked for deletion, the same-ordinal Pod is recreated and reattaches its existing PVC from volumeClaimTemplates, preserving data; safety needs the old Pod confirmed…

Docker & Kubernetes1 min read

Why is a Pod with a PVC stuck Pending?

PVC may be unbound from missing StorageClass, no matching PV, mismatched access mode or size, zone or capacity limits, or WaitForFirstConsumer; diagnose with describe on Pod and PVC plus events.

Docker & Kubernetes1 min read

What is a StorageClass and dynamic provisioning?

A StorageClass names a provisioner and parameters; a PVC referencing it triggers on-demand PV creation, so admins do not pre-create volumes.

Docker & Kubernetes1 min read

How do you inject secrets from an external store at runtime?

Use a sidecar injector or CSI driver that authenticates via the Pod's ServiceAccount token, fetches secrets at runtime, and mounts them on tmpfs.

Docker & Kubernetes1 min read

How do you let Pods pull from a private registry?

Create a dockerconfigjson Secret with registry creds; reference it via imagePullSecrets on the Pod or ServiceAccount.

Docker & Kubernetes1 min read

Manage startup order and readiness in Compose

Depends_on only orders start, not readiness; add a healthcheck to the DB and use depends_on with condition: service_healthy so the web app waits until the DB passes its health check.

Docker & Kubernetes1 min read

Distroless images: benefits and trade-offs

Distroless ships only the app and runtime deps, no shell or package manager; smaller and a smaller attack surface than Alpine; trade-off is harder debugging with no shell.

Docker & Kubernetes1 min read

What is the OCI and why do its specs matter?

OCI defines vendor-neutral specs for image format and runtime so any compliant tool interoperates; runc implements the runtime spec; this prevents lock-in.

Data Science & Analytics1 min read

Deploy a saved model as a REST prediction service

Load the artifact, wrap it in a predict API, containerize, host with autoscaling, add monitoring.

Cloud Platforms1 min read

Design a multi-tenant model serving platform

Share infrastructure to cut cost while enforcing tenant data isolation, fair resource allocation against noisy neighbors, and per-tenant performance via quotas and autoscaling.

Cloud Platforms1 min read

Design petabyte-scale distributed training

Object storage with columnar formats, distributed preprocessing, a data-parallel framework with efficient sharded loading, and managed orchestration.

Cloud Platforms1 min read

Debug intermittent pod-to-pod connectivity

Scope the failure by path, rule out DNS, inspect kube-proxy iptables and conntrack, check the CNI, then verify cloud security groups and MTU.

Cloud Platforms1 min read

Grant an EKS pod IAM access to S3

IRSA maps a service account to an IAM role via the cluster OIDC provider, and pods exchange a projected token for short-lived STS credentials.

Cloud Platforms1 min read

Dynamic database credential rotation for microservices

A secrets manager issues short-lived per-service credentials, services authenticate by workload identity and fetch or refresh secrets without restart, leases expire and rotate automatically.

Cloud Platforms1 min read

Designing for portability across two clouds

Abstract via containers, Terraform, and open standards; avoid proprietary managed services.