Caleb Woodbine's blog
βͺ Posts
π Announcing Kubernetes Fractional Scaling
Hi there and welcome back!
π Woohoo!
I'm excited to announce Fractional Scaling for Kubernetes.
That's right! Kubernetes now supports HiDPI displays.
βοΈ Dependencies
- Kubernetes v1.33
π‘ Configure API-Server
Enable the feature gate with the following flag:
--feature-gates=...,FractionalScaling=true
π§° Setting it up
Fractional scaling can be set up simply with the FractionalScaling
resource introduced in v1.33
apiVersion: extensions.k8s.io/v2gamma1
kind: FractionalScaling
metadata:
name: system
spec:
minScale: 1.1
maxScale: 10.6
rate: 5%
See the status with
kubectl get fractionalscaling
NAME SCALE READY system 1.1-10.6 true
Great, now we're ready to go!
π οΈ Usage
Now a Deployment can be configured with Fractional Scaling too!
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
annotations:
scaleclass.k8s.io/name: "fractionalscaling/system"
name: nginx
spec:
replicas: 1.5
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx:latest
name: nginx
See: spec.replicas
set to 1.5
.
β¨ Wrapping up
Now Kubernetes will display well on HiDPI displays, similar to the efforts of Wayland on desktop Linux.
π΅βπ« Happy April Fools
and happy KubeCon CloudNativeCon EU 2025 π