
Beyond DevOps and Delivery: Embracing Sustainability in IT
Explore how DevOps evolves beyond delivery to embrace sustainability. Learn key…
// Reddit Pixel Tracker

Energy efficiency is at its best around and above 80% of server utilisation as described by Brendan here1. So how can this be achieved with Kubernetes core functionality, while still being able to handle fluctuating load.
Horizontal Pod Autoscaler and Cluster Autoscaler are your tools of choice when it comes to optimising the resource utilisations of your Kubernetes workloads, but please be mindful as the ideal configuration depends on your specific application workloads, traffic patterns, and infrastructure constraints. However, here's a breakdown of how to strike a good balance:
How to Find the Balance:
Example Configuration:
HPA Configuration (YAML):
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: my-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: my-deployment
minReplicas: 2 # Minimum number of pods for your application
maxReplicas: 5 # Maximum number of pods for your application
metrics:
- type: Resource
resource:
name: cpu # Metric to scale on (CPU in this case)
target:
type: Utilization
averageUtilization: 70 # Target CPU utilization (below 80%)
Explanation:
Cluster Autoscaler Configuration (YAML, Example for AWS EKS):
apiVersion: clusterautoscaler.x-k8s.io/v1
kind: ClusterAutoscaler
metadata:
name: my-cluster-autoscaler
spec:
# Define scaling based on node utilisation
recommenders:
- type: resourceUtilization
# Scale up if node CPU utilisation exceeds 80%
cpuUtilization: 80
# Define the Kubernetes provider for EKS
clusterProvider: aws
# Define the AWS region
awsRegion: eu-central-2
Explanation:
Continuous Monitoring and Adjustment:
The right balance between HPA and Cluster Autoscaler is an evolving process. Regularly monitor performance metrics, scaling events, and resource utilisation to fine-tune your configurations, ensuring both tools work together efficiently.
Key Points:
If you fine tune your HPA and cluster-autoscaler you will always have the resources that are required to run your workloads, but never over-provisioned the resources, which will lower your environmental impact and you optimise your K8s spends.

Explore how DevOps evolves beyond delivery to embrace sustainability. Learn key…

Learn to navigate the Cloud Native to AI Native transition. Avoid common mistake…

Join us at KubeCon for expert insights on AI and Kubernetes. Learn how to align…
Get a shared vocabulary of proven Transformation Patterns, common Anti-Patterns, and Paradigm Patterns to have more effective, data-driven conversations about your strategy and architecture.
For a personalized starting point, take our free online assessment. Your results will give you a detailed report on your current maturity and suggest the most relevant patterns to focus on first.
Every Tuesday, we deliver one short, powerful read on AI Native to help you lead better, adapt faster, and build smarter—based on decades of experience helping teams transform for real.