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 🚀