Skip to main content

Operations and Cost Optimization

16 min read

Overview​

Because a hybrid cluster combines cloud nodes and on-premises nodes in a single structure, it requires operational decisions different from cloud-only clusters in four areas: workload placement, configuration validation, observability, and cost. This document covers mixed mode placement strategy, configuration validation automation tools, the monitoring architecture, and cost optimization that leverages the vCPU-hour billing structure.

Mixed Mode Workload Placement Strategy​

Mixed mode, which co-locates cloud nodes and hybrid nodes in a single cluster, is the official operational pattern for working around Pod routing constraints and the default topology for hybrid operations.

  • Place webhooks on cloud nodes: In environments where the Pod CIDR is unroutable, pin webhook components such as the AWS Load Balancer Controller and cert-manager to cloud nodes using nodeAffinity. Hybrid nodes are identified by the eks.amazonaws.com/compute-type: hybrid label, so write affinity conditions against this label.
  • At least 1 CoreDNS replica on each side: Topology spreading is recommended so that DNS lookups on the hybrid node side are handled without a round trip to the cloud.
  • Service Traffic Distribution: Keep traffic close to the zone where it originates to reduce unnecessary cross-network hops.
  • Review system add-on placement: Requirements differ by component, so distinguish two types. Metrics Server is a component the control plane accesses directly via the Pod IP (or the node IP when hostNetwork is enabled); unless you configure routable Pod IPs, place it on cloud nodes or run it in hostNetwork mode. The AMP managed collector's scraper, by contrast, is managed by AWS and is not subject to your node scheduling, so there is no concept of "placing it on cloud nodes." The AMP managed collector requires that the metric endpoints of your hybrid-node applications be reachable from the VPC (including routes to remote Pod network CIDRs and open ports in your on-premises firewall) and that the cluster has private cluster endpoint access configured (see the capability table).

Configuration Validation Automation​

  • EKS Cluster Insights: Automatically scans clusters with hybrid nodes to detect configuration issues such as control plane↔webhook communication and kubectl exec/logs paths, and provides remediation recommendations. Results are available in the console, CLI, and SDK. Use it as the first inspection tool after new builds or configuration changes.
  • nodeadm debug: Run directly on a hybrid node to validate whether networking and credential requirements are met. It is the first-line diagnostic tool when node join fails.
# Run on the hybrid node — validates networking and credential requirements
sudo nodeadm debug --config-source file://nodeconfig.yaml

Monitoring Architecture​

A hybrid cluster has three observation layers.

Table 1. The three hybrid cluster observation layers and their tools

LayerObservation TargetsTools
Nodes and workloadsHybrid node status, Pod metricsPrometheus/AMP (ADOT), CloudWatch Observability add-on
Cross-network pathDX/VPN availability and bandwidth, VXLAN tunnel trafficCloudWatch (DX/VPN metrics), Gateway metrics
Gateway (if used)Leader status, route update errors, bandwidth utilizationhybrid_gateway_* Prometheus metrics — details

The operational key point is that the cross-network path is a critical availability dependency. With a single circuit that path is a single point of failure, but Direct Connect supports multi-circuit, multi-location configurations through the Resiliency Toolkit, so choose a level of redundancy that matches your actual shared failure domains and availability target. If the connection between the control plane and the data plane (DX/VPN) is severed, scheduling, kubectl operations, and credential renewal stop. Workloads already running locally continue to operate to the extent that their dependencies are local and their credentials and probes do not expire, but workloads that depend on cloud resources or on components that require renewal can be affected. Manage availability metrics and alerts for the connectivity layer at the same level as cluster metrics.

  • If Pod metric collection is required, the AMP managed collector assumes that the metric endpoints of your hybrid-node applications are reachable from the VPC (routes to remote Pod network CIDRs and firewall ports) and that private cluster endpoint access is configured. Replacing it with the ADOT add-on does not remove that assumption: the ADOT operator uses admission webhooks to mutate and validate the Collector custom resource, so running the operator on hybrid nodes requires that your on-premises Pod CIDR be routable and that the cluster be configured with your remote Pod network. Therefore, in configurations where the Pod CIDR is unroutable, pin the ADOT operator to cloud nodes with nodeAffinity so the webhooks are reachable, or choose a different collection architecture that avoids the admission dependency.
  • Collect system logs and kubelet logs from hybrid nodes via the CloudWatch Logs agent or the existing on-premises logging stack, and ensure time synchronization (NTP) with cluster events.
  • Per-tool implementation — Cluster Insights self-diagnosis, the Container Insights hybrid configuration (RUN_WITH_IRSA), the Cilium Hubble eBPF dashboard, and Network Flow Monitor applicability — is covered in Observability Integration.

Cost Optimization​

Based on the tiered vCPU-hour structure of the pricing model, the following strategies are effective.

  1. Selective workload placement (a policy choice): Hybrid node charges are based on the vCPU capacity that registered nodes report to Kubernetes and on how long they stay registered; billing starts when a node joins and stops when it is removed. Which workloads run on a node does not affect the charge. Consequently, moving general-purpose CPU workloads to cloud nodes (mixed with Spot) does not reduce hybrid fees if the GPU hosts remain registered as hybrid nodes — those hosts' vCPUs are still billed — and it adds EC2/Spot cost for the moved workloads. Hybrid fee savings occur only when you actually reduce the number of registered nodes or their registration time, so treat this placement as a policy choice made after comparing total cost (hybrid fees plus the added cloud cost).
  2. Node registration lifecycle management: Deregister hybrid nodes from the cluster during unused periods to reduce billable vCPU-hours
  3. Cost visibility: Filter by the Amazon Elastic Kubernetes Service - Hybrid Nodes service dimension in Cost Explorer to observe trends per environment

Include hybrid-specific fixed costs in the plan as well. When using the Gateway, 2 gateway EC2 instances per cluster (6 for three environments — dev/stg/prd) are billed continuously, and standard cross-AZ data transfer charges apply to cross-AZ traffic between the gateway and VPC resources.

Summary of Recommendations​

  • Pin components with direct control plane → Pod communication, such as webhooks and Metrics Server, to cloud nodes using nodeAffinity.
  • Check Cluster Insights immediately after builds and changes, and use nodeadm debug for first-line diagnosis when node join fails.
  • Configure availability alerts for the DX/VPN connectivity layer at the same level as cluster alerts.
  • Hybrid fees are charged on the vCPU capacity and registration time of registered nodes, so deregister unused nodes to reduce billable vCPU-hours, and decide workload placement after comparing total cost (hybrid fees plus added cloud cost).
  • Regularly observe per-environment cost trends with the Hybrid Nodes service filter in Cost Explorer.

References​

Official Documentation​