# Learnk8s

In-depth, technical Kubernetes articles with a focus on mastering the fundamentals and visual explanations.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Go CPU and Memory Requests and Limits in Kubernetes

DevFeed: [Go CPU and Memory Requests and Limits in Kubernetes](<https://devfeed.tech/articles/go-cpu-and-memory-requests-and-limits-in-kubernetes-65381.md>)

Original publisher: [Read original article](<https://learnkube.com/go-kubernetes-requests-limits>)

Author: Gulcan Topcu

Published: 2026-10-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [memory handling](<https://devfeed.tech/topics/memory-handling.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [NUMA](<https://devfeed.tech/topics/numa.md>)

Tags: [cpu-throttling](<https://devfeed.tech/tags/cpu-throttling.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [go](<https://devfeed.tech/tags/go.md>), [gomemlimit](<https://devfeed.tech/tags/gomemlimit.md>), [goroutine](<https://devfeed.tech/tags/goroutine.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [limits](<https://devfeed.tech/tags/limits.md>), [memory](<https://devfeed.tech/tags/memory.md>)

### AI overview

This tutorial explains how Kubernetes CPU and memory requests and limits affect Go services. It demonstrates how CPU quotas influence GOMAXPROCS and throttling, and how Go's GOMEMLIMIT differs from the container memory ceiling because stacks, runtime allocations, and memory outside Go's accounting also affect usage. It recommends measuring realistic workloads to set resource values and validate GC cost, latency, and throughput.

### Source excerpt

Set Kubernetes CPU and memory requests and limits for Go services by checking GOMAXPROCS, GOMEMLIMIT, live heap, goroutine stacks, CPU throttling, and garbage collection cost.

## Java JVM CPU and Memory Requests and Limits in Kubernetes

DevFeed: [Java JVM CPU and Memory Requests and Limits in Kubernetes](<https://devfeed.tech/articles/java-jvm-cpu-and-memory-requests-and-limits-in-kubernetes-19133.md>)

Original publisher: [Read original article](<https://learnkube.com/java-jvm-kubernetes-requests-limits>)

Author: Gulcan Topcu

Published: 2026-08-31T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [rancher](<https://devfeed.tech/topics/rancher.md>), [memory handling](<https://devfeed.tech/topics/memory-handling.md>)

Tags: [container](<https://devfeed.tech/tags/container.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [heap](<https://devfeed.tech/tags/heap.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [limits](<https://devfeed.tech/tags/limits.md>), [memory](<https://devfeed.tech/tags/memory.md>), [service](<https://devfeed.tech/tags/service.md>)

### AI overview

A JVM's heap must fit within the Kubernetes container memory limit alongside metaspace, code cache, thread stacks, direct buffers, garbage-collector data, and native libraries; using the full limit for the heap can lead the kernel to kill the container. The excerpt explains that heap sizing is controlled by JVM startup options and that exhausting heap first triggers garbage collection, then an out-of-memory error if space cannot be reclaimed. Kubernetes CPU settings also affect the CPU count HotSpot sees, which influences thread pools and garbage-collector defaults. The excerpt says the article demonstrates testing under load, but does not include its specific sizing recommendations or calculator details.

### Source excerpt

Setting Kubernetes CPU and memory requests and limits for a JVM service is four coupled decisions: container memory, heap size, GC selection, and CPU quota. Use the calculator to explore the space.

## Server-side apply: what happens when you run kubectl apply

DevFeed: [Server-side apply: what happens when you run kubectl apply](<https://devfeed.tech/articles/server-side-apply-what-happens-when-you-run-kubectl-apply-19145.md>)

Original publisher: [Read original article](<https://learnkube.com/server-side-apply-kubernetes>)

Author: Chiara Salvatore

Published: 2026-06-30T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [kubectl](<https://devfeed.tech/topics/kubectl.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [apply](<https://devfeed.tech/tags/apply.md>), [argo-cd](<https://devfeed.tech/tags/argo-cd.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [container-image](<https://devfeed.tech/tags/container-image.md>), [controller](<https://devfeed.tech/tags/controller.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [field](<https://devfeed.tech/tags/field.md>), [gitops](<https://devfeed.tech/tags/gitops.md>), [helm](<https://devfeed.tech/tags/helm.md>), [hotfix](<https://devfeed.tech/tags/hotfix.md>), [kubectl](<https://devfeed.tech/tags/kubectl.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [logging](<https://devfeed.tech/tags/logging.md>), [manifest](<https://devfeed.tech/tags/manifest.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [operators](<https://devfeed.tech/tags/operators.md>), [ownership](<https://devfeed.tech/tags/ownership.md>)

### AI overview

Kubernetes server-side apply puts field ownership in the API server so apply-style tools can report conflicts instead of silently overwriting one another's changes to shared objects. The excerpt contrasts this with client-side apply, still described as kubectl's default: kubectl fetches the OpenAPI schema before apply or create, and apply checks whether the resource exists before deciding what to do. The excerpt ends during the update example, so it does not provide the full mechanics or further comparison.

### Source excerpt

Client-side apply can silently overwrite changes made by other tools. Server-side apply moves field ownership to the API server. Here is how it works and why it matters.

## Kubelet Metrics: How cAdvisor and CRI Collect Kubernetes Stats

DevFeed: [Kubelet Metrics: How cAdvisor and CRI Collect Kubernetes Stats](<https://devfeed.tech/articles/kubelet-metrics-how-cadvisor-and-cri-collect-kubernetes-stats-19138.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-metrics-cadvisor-kubelet-cri>)

Author: Gulcan Topcu

Published: 2026-05-18T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Prometheus](<https://devfeed.tech/topics/prometheus.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Logging and metrics](<https://devfeed.tech/topics/logging-and-metrics.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [bare-metal](<https://devfeed.tech/tags/bare-metal.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [collect](<https://devfeed.tech/tags/collect.md>), [component](<https://devfeed.tech/tags/component.md>), [container](<https://devfeed.tech/tags/container.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cpu-throttling](<https://devfeed.tech/tags/cpu-throttling.md>), [data](<https://devfeed.tech/tags/data.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [pod](<https://devfeed.tech/tags/pod.md>), [stats](<https://devfeed.tech/tags/stats.md>)

### AI overview

Kubernetes workload metrics come from a collection pipeline rooted in the Linux kernel and cgroups: kubelet exposes container, pod, and node data, with cAdvisor and, in a CRI-native model, the container runtime as possible sources for container metrics. The excerpt also places these signals within four monitoring layers: OS-level node resources, Kubernetes component health and performance, API resource state, and pod/container workload performance. It notes that Prometheus and Grafana consume metrics but does not provide the promised details on configuration changes, CRI communication, or tracing individual metrics.

### Source excerpt

Learn how kubelet collects Kubernetes metrics from cgroups, cAdvisor, containerd and CRI, and when pod and container stats move to the runtime.

## How the Kubernetes control plane works

DevFeed: [How the Kubernetes control plane works](<https://devfeed.tech/articles/how-the-kubernetes-control-plane-works-19135.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-control-plane>)

Author: LearnKube

Published: 2026-04-17T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [control-plane](<https://devfeed.tech/topics/control-plane.md>), [etcd](<https://devfeed.tech/topics/etcd.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [admission](<https://devfeed.tech/tags/admission.md>), [aggregation](<https://devfeed.tech/tags/aggregation.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [components](<https://devfeed.tech/tags/components.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [controller](<https://devfeed.tech/tags/controller.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-control-plane](<https://devfeed.tech/tags/kubernetes-control-plane.md>), [mutation](<https://devfeed.tech/tags/mutation.md>), [pod](<https://devfeed.tech/tags/pod.md>), [reconciliation](<https://devfeed.tech/tags/reconciliation.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [schema-validation](<https://devfeed.tech/tags/schema-validation.md>)

### AI overview

The Kubernetes control plane stores desired cluster state and coordinates changes so the cluster can move toward it. The API server is the request gateway: it handles authentication, authorization, mutation, schema validation, and admission before persisting accepted objects in etcd. etcd keeps a durable, strongly consistent record of cluster state. The controller manager runs reconciliation loops for resources such as Deployments, while the scheduler chooses a node for each unscheduled Pod. The excerpt also notes that API aggregation can make APIs such as Metrics Server appear native; it ends before explaining this further.

### Source excerpt

A visual map of the Kubernetes control plane with linked deep dives into the API server, scheduler, controller manager, and etcd.

## How does the Kubernetes controller manager work?

DevFeed: [How does the Kubernetes controller manager work?](<https://devfeed.tech/articles/how-does-the-kubernetes-controller-manager-work-19136.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-controller-manager-explained>)

Author: Daniele Polencic

Published: 2026-04-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [controllers](<https://devfeed.tech/tags/controllers.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [running](<https://devfeed.tech/tags/running.md>), [self-healing](<https://devfeed.tech/tags/self-healing.md>), [state](<https://devfeed.tech/tags/state.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

A tutorial explaining how the Kubernetes controller manager runs reconciliation loops that watch resources and move the cluster toward its desired state. It demonstrates how a Deployment and ReplicaSet replace a deleted Pod and contrasts declarative control with imperative scripting.

### Source excerpt

The controller manager runs the control loops that make Kubernetes self-healing. Learn how controllers watch resources, reconcile desired state, and drive the chain reaction from Deployment to running Pods.

## Why etcd breaks at scale in Kubernetes

DevFeed: [Why etcd breaks at scale in Kubernetes](<https://devfeed.tech/articles/why-etcd-breaks-at-scale-in-kubernetes-19130.md>)

Original publisher: [Read original article](<https://learnkube.com/etcd-breaks-at-scale>)

Author: Daniele Polencic

Published: 2026-02-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Database](<https://devfeed.tech/topics/database.md>), [Raft](<https://devfeed.tech/topics/raft.md>), [Availability](<https://devfeed.tech/topics/availability.md>)

Tags: [api-server](<https://devfeed.tech/tags/api-server.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [database](<https://devfeed.tech/tags/database.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [raft](<https://devfeed.tech/tags/raft.md>), [scale](<https://devfeed.tech/tags/scale.md>)

### AI overview

This article explains why etcd becomes a bottleneck as Kubernetes clusters grow. It describes etcd as the API server's private, consistent backend and explains how Raft supports shared state across multiple API servers for high availability.

### Source excerpt

etcd is the database behind every Kubernetes cluster. This article explains etcd's design limits, how the API server amplifies them, and what you can do about it -- from sharding to what GKE, EKS, and k3s built.

## How does the Kubernetes scheduler work?

DevFeed: [How does the Kubernetes scheduler work?](<https://devfeed.tech/articles/how-does-the-kubernetes-scheduler-work-19140.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-scheduler-explained>)

Author: Daniele Polencic

Published: 2026-02-09T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [admission](<https://devfeed.tech/tags/admission.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [bare-metal](<https://devfeed.tech/tags/bare-metal.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [container](<https://devfeed.tech/tags/container.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [controller](<https://devfeed.tech/tags/controller.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [node](<https://devfeed.tech/tags/node.md>), [pods](<https://devfeed.tech/tags/pods.md>), [queue](<https://devfeed.tech/tags/queue.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>)

### AI overview

The scheduler does not create pods: the controller manager creates a ReplicaSet for a Deployment, and that controller creates the requested pods. Initially, those pods are Pending records in etcd without a node assignment. The scheduler watches the API server for unassigned pods and adds them to its internal queue. The excerpt ends as the scheduling cycle begins, so it does not provide the promised details about filtering nodes, scoring candidates, or influencing placement.

### Source excerpt

The Kubernetes scheduler decides where your pods run. Learn how it filters nodes, scores candidates, and assigns workloads to the right place in your cluster.

## What happens inside the Kubernetes API server?

DevFeed: [What happens inside the Kubernetes API server?](<https://devfeed.tech/articles/what-happens-inside-the-kubernetes-api-server-19134.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-api-explained>)

Author: Daniele Polencic

Published: 2026-01-26T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [api server](<https://devfeed.tech/topics/api-server.md>), [API](<https://devfeed.tech/topics/api.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [bearer](<https://devfeed.tech/tags/bearer.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [ci-cd-pipeline](<https://devfeed.tech/tags/ci-cd-pipeline.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [http](<https://devfeed.tech/tags/http.md>), [http-server](<https://devfeed.tech/tags/http-server.md>), [json](<https://devfeed.tech/tags/json.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-cluster](<https://devfeed.tech/tags/kubernetes-cluster.md>), [kubernetes-control-plane](<https://devfeed.tech/tags/kubernetes-control-plane.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [rbac](<https://devfeed.tech/tags/rbac.md>)

### AI overview

The Kubernetes API server is an HTTP API through which cluster components and clients send requests. It publishes an OpenAPI schema that tools such as kubectl use for client-side YAML validation before requests reach the server. Incoming requests pass through an HTTP handler, then authentication, which identifies the caller using an authenticator chain (for example, client certificates, bearer tokens, or OpenID Connect). Authorization then checks whether that caller may perform the requested operation; the excerpt identifies RBAC as the most common method. The supplied excerpt ends during its RBAC explanation and does not provide the remaining request-processing steps.

### Source excerpt

The Kubernetes API server handles all requests to your cluster. But how does it actually work? Learn how requests flow through authentication, authorization, admission controllers, and into etcd.

## From Linux Primitives to Kubernetes Security Contexts

DevFeed: [From Linux Primitives to Kubernetes Security Contexts](<https://devfeed.tech/articles/from-linux-primitives-to-kubernetes-security-contexts-19144.md>)

Original publisher: [Read original article](<https://learnkube.com/security-contexts>)

Author: Dave Altena

Published: 2025-08-11T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [container](<https://devfeed.tech/topics/container.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [capabilities](<https://devfeed.tech/tags/capabilities.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [configure](<https://devfeed.tech/tags/configure.md>), [container](<https://devfeed.tech/tags/container.md>), [containers](<https://devfeed.tech/tags/containers.md>), [context](<https://devfeed.tech/tags/context.md>), [docker](<https://devfeed.tech/tags/docker.md>), [field](<https://devfeed.tech/tags/field.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [filesystems](<https://devfeed.tech/tags/filesystems.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-security](<https://devfeed.tech/tags/kubernetes-security.md>), [linux](<https://devfeed.tech/tags/linux.md>), [low-level](<https://devfeed.tech/tags/low-level.md>), [namespaces](<https://devfeed.tech/tags/namespaces.md>), [networking](<https://devfeed.tech/tags/networking.md>), [pods](<https://devfeed.tech/tags/pods.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

Containers in Kubernetes run as Linux processes on the host kernel, isolated with namespaces, cgroups, and a separate virtual filesystem. Kubernetes does not impose a non-root policy: the image's default user applies unless overridden. A pod's `securityContext` declaratively configures process behavior, but Kubernetes passes those settings to the container runtime, which maps them to kernel features. The excerpt identifies controls for choosing the container user, managing Linux capabilities, using read-only filesystems, and blocking privilege escalation; it explains that root access can increase host privilege-escalation risk if a container is compromised. The supplied text ends as it begins discussing syscalls, so it does not provide the configuration details or practical YAML steps.

### Source excerpt

Dive deep into Kubernetes Security Contexts and learn how to manage security settings for your pods and containers.

## Kubernetes networking: service, kube-proxy, load balancing

DevFeed: [Kubernetes networking: service, kube-proxy, load balancing](<https://devfeed.tech/articles/kubernetes-networking-service-kube-proxy-load-balancing-19141.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-services-and-load-balancing>)

Author: Gulcan Topcu

Published: 2024-10-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Network](<https://devfeed.tech/topics/network.md>), [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [applications](<https://devfeed.tech/tags/applications.md>), [backend](<https://devfeed.tech/tags/backend.md>), [browser](<https://devfeed.tech/tags/browser.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [http](<https://devfeed.tech/tags/http.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-networking](<https://devfeed.tech/tags/kubernetes-networking.md>), [load-balancing](<https://devfeed.tech/tags/load-balancing.md>), [networking](<https://devfeed.tech/tags/networking.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [services](<https://devfeed.tech/tags/services.md>)

### AI overview

A tutorial on Kubernetes networking that explains Services, kube-proxy, and load balancing. It covers pod communication, ClusterIP, NodePort, and LoadBalancer services, along with traffic from external sources and implementation details using iptables.

### Source excerpt

Master Kubernetes networking with Services and load balancing. Learn how traffic flows within clusters and from external sources.

## Kubernetes Authentication: Users and Workload Identities

DevFeed: [Kubernetes Authentication: Users and Workload Identities](<https://devfeed.tech/articles/kubernetes-authentication-users-and-workload-identities-19129.md>)

Original publisher: [Read original article](<https://learnkube.com/authentication-kubernetes>)

Author: Arthur Chiao

Published: 2022-06-30T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [identity and access management](<https://devfeed.tech/topics/identity-and-access-management.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>)

### AI overview

Kubernetes handles API requests in two stages: authentication identifies the requester, then authorization checks what that identity may do. In the excerpt's curl example, a request without credentials is labeled anonymous; the authorization stage then rejects its attempt to list namespaces because anonymous requests have no permissions. The article is part one of a four-part series and focuses on authentication, but the supplied excerpt does not provide details about Service Accounts, projected tokens, OIDC, or workload identity.

### Source excerpt

Explore how the Kubernetes API server authenticates users and workloads with Service Accounts, projected tokens, OIDC, and workload identity.

## The mechanics of Kubernetes RBAC and how it connects users to permissions

DevFeed: [The mechanics of Kubernetes RBAC and how it connects users to permissions](<https://devfeed.tech/articles/the-mechanics-of-kubernetes-rbac-and-how-it-connects-users-to-permissions-19143.md>)

Original publisher: [Read original article](<https://learnkube.com/rbac-kubernetes>)

Author: Arthur Chiao

Published: 2022-03-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Authorization](<https://devfeed.tech/topics/authorization.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [API](<https://devfeed.tech/topics/api.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [kubectl](<https://devfeed.tech/topics/kubectl.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [kubectl](<https://devfeed.tech/tags/kubectl.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>)

### AI overview

A practical tutorial on Kubernetes Role-Based Access Control (RBAC), explaining how authentication, authorization, roles, bindings, service accounts, and the Kubernetes API server fit together.

### Source excerpt

A practical guide to Kubernetes RBAC authorization. Master Roles, RoleBindings, ClusterRoles, and ServiceAccounts with real scenarios and hands-on examples.

## How etcd works with and without Kubernetes

DevFeed: [How etcd works with and without Kubernetes](<https://devfeed.tech/articles/how-etcd-works-with-and-without-kubernetes-19131.md>)

Original publisher: [Read original article](<https://learnkube.com/etcd-kubernetes>)

Author: Emanuel Evans

Published: 2021-07-21T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [etcd](<https://devfeed.tech/topics/etcd.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Process](<https://devfeed.tech/topics/process.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [database](<https://devfeed.tech/tags/database.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [key-value-store](<https://devfeed.tech/tags/key-value-store.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>)

### AI overview

Kubernetes uses etcd as the database where the API server persists resource definitions. The API server authenticates and authorizes requests, may modify them through mutating webhooks, validates them, and stores the payload in etcd; it can also notify subscribers when an object changes. Controllers and node agents such as kubelet then act on the desired configuration. The article frames a three-node etcd cluster as a way to explore etcd directly, but the supplied excerpt ends before describing cluster setup, operation outside Kubernetes, or troubleshooting steps.

### Source excerpt

Deep dive into etcd distributed key-value store and how Kubernetes uses it as its database. Learn to build, configure, and troubleshoot a 3-node etcd cluster with practical examples.

## Authentication between microservices using Kubernetes identities

DevFeed: [Authentication between microservices using Kubernetes identities](<https://devfeed.tech/articles/authentication-between-microservices-using-kubernetes-identities-19142.md>)

Original publisher: [Read original article](<https://learnkube.com/microservices-authentication-kubernetes>)

Author: Amit Saha

Published: 2020-12-01T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [identity and access management](<https://devfeed.tech/topics/identity-and-access-management.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [communications](<https://devfeed.tech/tags/communications.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [mutual-tls](<https://devfeed.tech/tags/mutual-tls.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [service-accounts](<https://devfeed.tech/tags/service-accounts.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

### AI overview

The excerpt outlines authenticating requests from an API service to a data store using Kubernetes Service Accounts and the TokenReview API, then tightening the setup with audience-bound projected Service Account tokens. The API obtains an identity token and sends it with its request; the data store validates the token before responding, so it can reject requests from other callers. The text contrasts static non-expiring tokens, an OAuth server, and custom mutual TLS, and says authentication systems should verify caller identity and issue tokens with limited scope, validity, and the intended audience. The excerpt cuts off during its description of token validation.

### Source excerpt

Learn how you can secure communications between microservices to prevent unauthenticated requests using Kubernetes identities.

## Setting the right requests and limits in Kubernetes

DevFeed: [Setting the right requests and limits in Kubernetes](<https://devfeed.tech/articles/setting-the-right-requests-and-limits-in-kubernetes-19146.md>)

Original publisher: [Read original article](<https://learnkube.com/setting-cpu-memory-limits-requests>)

Author: Gulcan Topcu

Published: 2020-09-02T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [scheduling](<https://devfeed.tech/topics/scheduling.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [container](<https://devfeed.tech/tags/container.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [core](<https://devfeed.tech/tags/core.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cpu-time](<https://devfeed.tech/tags/cpu-time.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [limits](<https://devfeed.tech/tags/limits.md>), [linux](<https://devfeed.tech/tags/linux.md>), [manifest](<https://devfeed.tech/tags/manifest.md>), [memory](<https://devfeed.tech/tags/memory.md>), [node](<https://devfeed.tech/tags/node.md>), [oom](<https://devfeed.tech/tags/oom.md>), [pod](<https://devfeed.tech/tags/pod.md>), [pods](<https://devfeed.tech/tags/pods.md>), [quotas](<https://devfeed.tech/tags/quotas.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>)

### AI overview

Kubernetes CPU and memory requests and limits act at different stages. The scheduler uses requests to place pods and reserve schedulable capacity; after placement, the kubelet and runtime translate settings into cgroups, where Linux manages CPU time, enforces CPU quotas, and caps memory. Actual use may exceed requests when a node has spare capacity, while scheduling still accounts for the full request. Under node pressure, the kubelet may evict pods. Controllers such as an HPA can also use requests as the basis for resource-utilization percentages. The excerpt introduces these mechanisms but does not provide enough detail to recommend specific values.

### Source excerpt

Learn how Kubernetes CPU and memory requests and limits control scheduling, cgroup weights and quotas, eviction, throttling, and OOM kills.

## Graceful shutdown in Kubernetes

DevFeed: [Graceful shutdown in Kubernetes](<https://devfeed.tech/articles/graceful-shutdown-in-kubernetes-19132.md>)

Original publisher: [Read original article](<https://learnkube.com/graceful-shutdown>)

Author: Daniele Polencic

Published: 2020-08-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [graceful-shutdown](<https://devfeed.tech/tags/graceful-shutdown.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [pod](<https://devfeed.tech/tags/pod.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [shutdown](<https://devfeed.tech/tags/shutdown.md>)

### AI overview

Pod creation begins when kubectl submits a definition to the Kubernetes API, which checks and stores it in etcd. The Scheduler then evaluates workload details such as CPU and memory requests, assigns a suitable Node, and records the Pod as scheduled. At that point, the Pod exists in etcd, but the excerpt ends before describing how kubelet creates it or how graceful shutdown handles requests and long-running tasks.

### Source excerpt

Prevent broken connections in Kubernetes. Learn graceful Pod shutdown techniques and how to handle long-running tasks during termination.

## Allocatable memory and CPU in Kubernetes Nodes

DevFeed: [Allocatable memory and CPU in Kubernetes Nodes](<https://devfeed.tech/articles/allocatable-memory-and-cpu-in-kubernetes-nodes-19128.md>)

Original publisher: [Read original article](<https://learnkube.com/allocatable-resources>)

Author: Daniele Polencic

Published: 2020-05-20T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Gke](<https://devfeed.tech/topics/gke.md>), [Amazon Elastic Kubernetes Service](<https://devfeed.tech/topics/amazon-elastic-kubernetes-service.md>), [Azure Kubernetes Service](<https://devfeed.tech/topics/azure-kubernetes-service.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>)

Tags: [aks](<https://devfeed.tech/tags/aks.md>), [azure-kubernetes-service](<https://devfeed.tech/tags/azure-kubernetes-service.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [eks](<https://devfeed.tech/tags/eks.md>), [gke](<https://devfeed.tech/tags/gke.md>), [google-kubernetes-engine](<https://devfeed.tech/tags/google-kubernetes-engine.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-cluster](<https://devfeed.tech/tags/kubernetes-cluster.md>), [kubernetes-nodes](<https://devfeed.tech/tags/kubernetes-nodes.md>), [kubernetes-services](<https://devfeed.tech/tags/kubernetes-services.md>), [memory](<https://devfeed.tech/tags/memory.md>), [node](<https://devfeed.tech/tags/node.md>), [pods](<https://devfeed.tech/tags/pods.md>), [resources](<https://devfeed.tech/tags/resources.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

A Kubernetes node's resources are divided among the operating system and system daemons, Kubernetes agents, Pods, and an eviction threshold, so total node capacity is not all allocatable to Pods. These quotas are configurable estimates: reserving an amount for the OS does not cap its actual use, and suitable values depend on the cluster. The excerpt gives GKE's tiered reservations: memory ranges from a 255 MiB base on machines under 1 GiB to percentages that decline across larger capacity tiers; CPU reservations likewise decline from 6% of the first core to 0.25% of cores above four. Its 2-vCPU, 7.5-GiB example reports 70 millicores reserved for CPU and about 1.7 GB for memory. The excerpt ends mid-discussion and provides no comparable AKS or EKS rules.

### Source excerpt

Pods deployed in your Kubernetes cluster consume resources such as memory, CPU and storage. However, not all resources in a Node can be used to run Pods.

## A visual guide on troubleshooting Kubernetes deployments

DevFeed: [A visual guide on troubleshooting Kubernetes deployments](<https://devfeed.tech/articles/a-visual-guide-on-troubleshooting-kubernetes-deployments-19147.md>)

Original publisher: [Read original article](<https://learnkube.com/troubleshooting-deployments>)

Author: Daniele Polencic

Published: 2019-12-05T00:00:00Z

Content type: article

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [deployments](<https://devfeed.tech/tags/deployments.md>), [diagram](<https://devfeed.tech/tags/diagram.md>), [guide](<https://devfeed.tech/tags/guide.md>), [ingress](<https://devfeed.tech/tags/ingress.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [load-balancer](<https://devfeed.tech/tags/load-balancer.md>), [pod](<https://devfeed.tech/tags/pod.md>), [pods](<https://devfeed.tech/tags/pods.md>), [port](<https://devfeed.tech/tags/port.md>), [selector](<https://devfeed.tech/tags/selector.md>), [service](<https://devfeed.tech/tags/service.md>), [services](<https://devfeed.tech/tags/services.md>), [troubleshooting](<https://devfeed.tech/tags/troubleshooting.md>)

### AI overview

The excerpt explains how Kubernetes Deployment, Service, and Ingress relate when troubleshooting deployments. A Deployment creates and watches Pods; a Service routes traffic directly to Pods, bypassing the Deployment, and its selector must match at least one Pod's label. The excerpt also distinguishes the Service as an internal load balancer and Ingress as the external traffic-routing layer. It introduces questions about port choices and labels, but cuts off before giving the remaining Service-to-Pod requirements or troubleshooting steps.

### Source excerpt

Master Kubernetes troubleshooting. Debug pod failures, resolve common errors, and diagnose deployment issues with proven strategies.

## How to Rollback a Deployment in Kubernetes

DevFeed: [How to Rollback a Deployment in Kubernetes](<https://devfeed.tech/articles/how-to-rollback-a-deployment-in-kubernetes-19139.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-rollbacks>)

Author: Gergely Risko

Published: 2019-10-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [DORA change failure rate](<https://devfeed.tech/topics/dora-change-failure-rate.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [image](<https://devfeed.tech/tags/image.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [pod](<https://devfeed.tech/tags/pod.md>), [pods](<https://devfeed.tech/tags/pods.md>), [production](<https://devfeed.tech/tags/production.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [rolling-update](<https://devfeed.tech/tags/rolling-update.md>), [service](<https://devfeed.tech/tags/service.md>), [strategies](<https://devfeed.tech/tags/strategies.md>), [traffic](<https://devfeed.tech/tags/traffic.md>)

### AI overview

Kubernetes rolling updates replace Pods incrementally: it creates a Pod with the new image, waits for readiness (and startup) probes, then removes an old Pod and repeats. This can avoid interrupting traffic when the new version's API remains compatible with the previous one, but readiness alone does not prevent an application from behaving incorrectly in production. The excerpt says Kubernetes has a built-in rollback mechanism for Deployments, StatefulSets, and DaemonSets, and recommends having a rollback plan for breaking changes. The supplied text ends before showing rollback commands or procedure.

### Source excerpt

Learn how to roll back breaking changes in Kubernetes. Master kubectl rollback commands and deployment strategies to quickly recover from production issues.