OpsCanary
Learn/Kubernetes/Scheduling & Resource Management
Kubernetes

Scheduling & Resource Management

20 articles from official documentation

Practitioner20 articles
kubernetesschedulingPractitioner

Tracing Kueue Admission: Unraveling Workload Mysteries with Headlamp

Understanding how Kueue admission works is crucial for optimizing resource allocation in Kubernetes. With the Kueue plugin for Headlamp, you can trace the admission path of a Workload, revealing insights into its resource requests and conditions. Dive in to learn how to leverage this tool effectively.

  • →Trace the admission path of a Workload using the Kueue plugin for Headlamp.
  • →Examine the Workload's condition message to identify potential issues.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Navigating the Shift to cgroup v2 in Kubernetes

Kubernetes is evolving, and so is its resource management with the shift to cgroup v2. Understanding how cgroups manage resources is crucial, especially with features like Memory QoS and the new kubelet defaults. This article dives into what you need to know to leverage these changes effectively.

  • →Understand cgroups as a kernel feature for managing system resources.
  • →Configure `failCgroupV1` to control kubelet startup behavior on cgroup v1 nodes.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering Node Swap in Kubernetes: Boosting Workload Resilience

Node swap can be a game changer for your Kubernetes workloads, especially during traffic spikes. By enabling the Linux kernel to page out memory to disk, you can effectively manage memory oversubscription and improve application performance.

  • →Enable node swap to manage memory oversubscription effectively.
  • →Configure `failSwapOn` to false to prevent kubelet failures due to swap detection.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Taming Pod Distribution Drift in EKS with the Kubernetes Descheduler

Pod distribution drift can lead to uneven resource utilization in your Amazon EKS cluster, causing performance issues. The Kubernetes descheduler can help you maintain balanced workloads by evicting pods that violate your defined policies. Let's dive into how it works and what you need to know to implement it effectively.

  • →Implement topologySpreadConstraints to control pod distribution across zones.
  • →Set maxSkew to define the maximum allowed difference in pod counts.
5 min read·AWS Containers Blog
Read article
kubernetesschedulingPractitioner

Unlocking Performance: Kubernetes Pod-Level Resource Managers in Beta

Kubernetes v1.37 brings Pod-Level Resource Managers to Beta, addressing the need for exclusive resource allocation for latency-sensitive applications. This feature allows Kubelet to make smarter hardware placement decisions using pod-level resource declarations.

  • →Enable the PodLevelResourceManagers feature gate to utilize this capability.
  • →Leverage pod-level resource declarations for more efficient hardware placement decisions.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Memory QoS in Kubernetes v1.37: A Game Changer for Resource Management

Kubernetes v1.37 introduces Memory QoS, a feature that enhances memory management for containers. By using the memory controller, it provides better guidance on how to treat container memory, particularly for Burstable and BestEffort containers.

  • →Leverage Memory QoS to optimize memory management for Burstable and BestEffort containers.
  • →Configure `memoryThrottlingFactor` to control memory throttling behavior effectively.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering Kubernetes v1.37: Scheduler Preemption for In-Place Pod Resize

Kubernetes v1.37 introduces a game-changing feature: scheduler preemption for in-place pod resizing. This allows the scheduler to free up node capacity by evicting lower-priority pods, ensuring critical workloads can scale effectively. Dive in to understand how this works and what you need to watch out for in production.

  • →Enable the InPlacePodVerticalScalingSchedulerPreemption feature gate to allow preemption for critical workloads.
  • →Monitor pods with a Deferred resize status to manage resource allocation effectively.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Kubernetes v1.37: Mastering Node Lifecycle Conditions

Kubernetes v1.37 introduces Node lifecycle conditions to help manage node states more effectively. These conditions allow you to communicate maintenance and drain statuses clearly. Understanding how to leverage this feature can streamline your cluster operations.

  • →Understand the five well-known Node conditions: DrainInProgress, Drained, MaintenancePlanned, MaintenanceInProgress, and GracefulNodeShutdownInProgress.
  • →Configure the NodeLifecycleConditions feature gate to enable these conditions, though it's disabled by default.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering Workload-Aware Scheduling in Kubernetes v1.37

Kubernetes v1.37 introduces significant advancements in workload-aware scheduling, crucial for optimizing resource allocation. The new CompositePodGroup API allows for complex scheduling scenarios that can enhance application performance in production environments.

  • →Utilize CompositePodGroup for complex scheduling scenarios involving multiple Pods.
  • →Leverage Workload-Aware Preemption to optimize resource allocation based on workload needs.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Unlocking Kubernetes v1.37: DRA Updates You Need to Know

Kubernetes v1.37 introduces significant updates to Device Resource Allocation (DRA) that streamline resource management. With DRA Extended Resource support, you can now satisfy resource requests without needing separate device plugins. This change simplifies your configuration and enhances scheduling efficiency.

  • →Leverage DRA Extended Resource support to simplify resource requests in Pod specs.
  • →Utilize ResourceClaims for enhanced visibility into per-device status.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Optimize Memory Usage in Kubernetes with etcd RangeStream

Kubernetes v1.37 introduces the RangeStream feature, which dramatically reduces memory consumption during large list reads. By streaming data in chunks, it adapts to the size of the objects being returned, ensuring efficient memory management.

  • →Enable the EtcdRangeStream feature gate on the kube-apiserver for efficient memory management.
  • →Utilize the adaptive chunking mechanism to handle large object collections without excessive memory use.
3 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering Pod Priority and Preemption in Kubernetes Scheduling

Kubernetes scheduling can be a bottleneck, especially under resource constraints. Pod Priority and Preemption allow you to prioritize critical workloads effectively, ensuring they get the resources they need. Learn how to configure PriorityClasses and leverage preemption policies to optimize your cluster's performance.

  • →Define PriorityClasses to prioritize critical workloads effectively.
  • →Use preemption logic to free up resources for higher-priority pods.
5 min read·Kubernetes Docs
Read article
kubernetesschedulingPractitioner

Dynamic Resource Allocation in Kubernetes: Does It Replace HAMi?

Dynamic Resource Allocation (DRA) is now a core feature in Kubernetes, but does it truly replace HAMi? With DRA's claims model and consumable capacity, understanding the nuances is crucial for effective resource management.

  • →Understand that DRA replaces integer counting with a claims model for resource allocation.
  • →Utilize the DRAConsumableCapacity feature for enhanced resource sharing capabilities.
5 min read·CNCF Blog
Read article
kubernetesschedulingPractitioner

Harnessing CoHDI: Transforming Kubernetes with Composable Disaggregated Infrastructures

Kubernetes is evolving, and CoHDI is at the forefront of this transformation. With Dynamic Resource Allocation (DRA), it allows for the dynamic attachment and detachment of PCIe devices, paving the way for more efficient resource management in your clusters.

  • →Leverage Dynamic Resource Allocation (DRA) for efficient resource management.
  • →Utilize the Composable Resource Operator to dynamically manage hardware resources.
5 min read·CNCF Blog
Read article
kubernetesschedulingPractitioner

Debugging GPU Utilization in Kubernetes: The Cilium and Kubeflow Challenge

Struggling with idle GPUs in your Kubernetes cluster? Discover how Cilium's topology-aware networking can clash with Kubernetes scheduling, leading to inefficient resource use. Learn how to leverage nodeAffinity and podAffinity to optimize your GPU workloads.

  • →Use nodeAffinity to pin workloads to the GPU zone.
  • →Implement topologySpreadConstraints to co-locate the coordinator and workers.
5 min read·CNCF Blog
Read article
kubernetesschedulingPractitioner

Building the Agentic Enterprise: Kubernetes and Internal Developer Platforms

The shift towards agentic enterprises is redefining how we manage software and infrastructure. Internal Developer Platforms (IDPs) streamline workflows for both humans and AI agents, ensuring efficient resource management. Dive into the mechanics of this evolution and what it means for your Kubernetes deployments.

  • →Utilize Internal Developer Platforms to encapsulate best practices and streamline workflows.
  • →Design interfaces that accommodate both human users and AI agents with distinct identities.
5 min read·CNCF Blog
Read article
kubernetesschedulingPractitioner

Optimizing JVM Performance in AWS Kubernetes: Memory, CPU, and Classpath Best Practices

Running Java applications in containers on AWS can be tricky. Understanding JVM memory management and classpath behavior is crucial for performance. Learn how to configure your JVM for optimal resource usage and avoid common pitfalls.

  • →Enable container support with the -XX:+UseContainerSupport flag to optimize memory usage.
  • →Define classpaths explicitly to avoid nondeterministic behavior in class loading.
5 min read·AWS Containers Blog
Read article
kubernetesschedulingPractitioner

From Kubernetes Dashboard to Headlamp: Streamlining Your Cluster Management

Transitioning from Kubernetes Dashboard to Headlamp can enhance your cluster management experience. Headlamp acts as a Kubernetes client with a UI, allowing for better resource management through YAML. Discover how to set it up effectively in your environment.

  • →Install Headlamp using Helm with `helm install headlamp headlamp/headlamp --namespace headlamp`.
  • →Use `kubectl port-forward -n headlamp svc/headlamp 8080:80` to access the Headlamp UI.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering WG Device Management in Kubernetes

Device management in Kubernetes just got a major upgrade with Dynamic Resource Allocation (DRA). This framework replaces the rigid device plugin model, allowing for a flexible, declarative API that enhances how you manage hardware resources. Dive in to understand how the ResourceSlice and ResourceClaim APIs work together to optimize your workloads.

  • →Leverage Dynamic Resource Allocation (DRA) to enhance device management flexibility.
  • →Use the ResourceSlice API to advertise hardware capabilities effectively.
5 min read·Kubernetes Blog
Read article
kubernetesschedulingPractitioner

Mastering Workload-Aware Scheduling in Kubernetes v1.36

Kubernetes v1.36 introduces powerful workload-aware scheduling features that can transform how you deploy applications. With the new Workload and PodGroup APIs, you can prevent resource wastage and deadlocks through gang scheduling. This is a game changer for managing complex workloads effectively.

  • →Utilize the Workload API as a static template for better workload management.
  • →Implement the PodGroup API to define runtime objects for your applications.
5 min read·Kubernetes Blog
Read article
Linux Foundation🔥 OCTOBER PROMOSponsor

35% off the CKA and other certifications with code OCT26NONCYBER, or 40% off Kubernetes security certs (CKS, KCSA) with OCT26CYBER.

Claim the discount →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.