Under the hood
What of a managed cluster is upstream Kubernetes and what is ours, why no platform credential exists inside a cluster, and what the upgrade, failure and conformance runs measured.
A managed cluster is upstream Kubernetes, installed by kubeadm on machines we own and drive from
our control plane. Everything that ties the cluster to the cloud underneath is ours: one Go binary,
ews-k8s, with a subcommand per job, and a KMS plugin, ews-kms-plugin. The decision that shapes
all of it is that no credential for Deutsche Cloud exists inside a cluster: nothing a pod can read lets
it create a machine, attach a volume or decrypt a Secret.
What runs where
kubectl ──TLS 6443──▶ load balancer (TCP passthrough,
PROXY protocol)
│
▼
per control-plane machine (1 dev, 3 standard; hidden)
ews-k8s endpoint-proxy admits by source address
─▶ kube-apiserver 6443, konnectivity-server
etcd · scheduler · controller-manager (static pods)
ews-kms-plugin unix socket
──HTTPS, machine token──▶ platform
ews-k8s ccm · csi controller · autoscaler provider
· log shipper (systemd services)
platform agent, every 20 s
│
▼
node (your compute instance, in your VPC)
kubelet · containerd/runc · Cilium · konnectivity-agent
ews-k8s csi node (LUKS unlock)
ews-k8s ecr-credential-provider
in-cluster pods: dns-webhook, acme-webhook (add-ons only)A kubectl request reaches the cluster's load balancer, which passes TCP through with the PROXY
protocol, and lands on the endpoint proxy of a control-plane machine. The proxy reads the PROXY
header, applies the cluster's endpoint access rules by source address, and hands the connection
to the local API server. It keeps its port open only while the local API server answers (a probe
every 2 seconds, closed after two failures), so the load balancer drops a sick machine within
about 15 seconds. The API server reaches kubelets through Konnectivity, whose agents dial out from
the nodes. Every ews-k8s service on a machine talks to the platform over HTTPS with that
machine's own token, and the platform also checks that the request comes from that machine's
public address.
What we built, and what we did not
Upstream, unmodified: kubeadm, kubelet, containerd and runc, etcd, Cilium, CoreDNS, Konnectivity,
the cluster autoscaler, external-dns, cert-manager, the CSI sidecars (provisioner, attacher,
resizer) and the k8s.io/cloud-provider framework that our cloud controller manager plugs into.
ews-k8s depends on k8s.io/cloud-provider, k8s.io/kubelet, k8s.io/mount-utils, the CSI spec
1.13 and gRPC. ews-kms-plugin is Go 1.26 with one dependency, k8s.io/kms, in 273 lines plus
135 of tests. Both binaries are served by the platform and checked on the machine against the
digest in its bootstrap bundle.
Ours, and why:
- A dedicated, hidden control plane per cluster, rather than hosted control planes in a management cluster (the GKE, Gardener or Kamaji shape) or a control plane in the customer's own organization. We had no Kubernetes of our own: a management cluster would have meant operating one before selling a single customer cluster, and a control plane in the customer's org is not managed.
- kubeadm driven by our controller, rather than Cluster API. Cluster API needs a management cluster and a reconciler that treats etcd as the truth, next to ours that treats our database as the truth, and two reconcilers deciding what to delete is a pattern that has cost us data before. Talos is a real option for the node OS and is deferred; Gardener is the heaviest; Kamaji only if hosted control planes ever come.
- Our own cloud controller manager and CSI driver, not the hosting provider's. The provider's drivers need a provider token inside the cluster. That token is shared by every organization we host, and it would tie clusters to one provider. Ours use the machine's token, and what a cluster may touch is decided by row ownership on the platform, with no IAM condition and no cluster role to get wrong. The pieces run as systemd services on the machines, never as pods, so nothing in the cluster can read the machine's token.
- The endpoint proxy. The endpoint is a load balancer in TCP passthrough, which cannot filter by source, and the API server cannot read the PROXY protocol. Something in between has to.
- KMS v2 with the key-encryption key on the platform. The API server generates data keys
itself and asks the plugin only to wrap a seed on rotation: a handful of calls a day, not one per
Secret. The plugin posts each call to the platform with the machine token, IPv4 only, 10 seconds
per call, and caches the status answer for 20 seconds so a burst of writes is not a burst of
requests. On the platform the key is wrapped with the platform's master key and used with
additional authenticated data naming the cluster and the key id, so a data key sealed for one
cluster does not open under another's endpoint. A customer-managed key for this was considered
and not built: a key the customer could delete would make its cluster's Secrets unreadable by
accident. In etcd a Secret's value starts with
k8s:enc:kms:v2:ews-kms:. - Cilium, rather than Calico (a separate Gateway implementation, and no Hubble) or Flannel (no NetworkPolicy). Services are Cilium's, in place of kube-proxy; there are no cloud routes.
- The upstream cluster autoscaler with its
externalgrpcprovider, ours on loopback on the control-plane machine, rather than scaling logic of our own: PodDisruptionBudgets, priorities, expanders and scale-from-zero behave the way people know them, for a few RPCs on our side. - DNS add-ons as webhooks: external-dns and cert-manager's DNS-01 solver call a small
ews-k8swebhook that authenticates with a projected service-account token for the audiencedns.eks.ews.cloud; the ACME solver is written without cert-manager's library. Again no platform credential lands in the cluster. - Pod identity by
MutatingAdmissionPolicyinstead of a mutating webhook: nothing to run, patch or fail open. - The log shipper batches at most 2,000 lines or 512 KB every 5 seconds and filters our own components' reads out of the audit log before it leaves the machine.
Benchmarks
How to rerun these. The hydrophone run and the polling loop below are public commands. The upgrades, power-offs and restores were driven by an internal tool, not published, except the 2026-11-14 power-off of all three control-plane machines and the forced upgrade, which were one-off runs with no script kept.
Every run below was made in our test installation with a harness (internal tool, not published)
that polls a LoadBalancer Service and kubectl get --raw /readyz once a second while the
platform upgrades or replaces machines; CNCF conformance ran with hydrophone. Every number is from the dated record of its run;
where a table does not say otherwise, the raw output was not kept. The customer-side part can be
repeated against any cluster:
hydrophone --conformance --kubeconfig ~/.kube/config
while sleep 1; do
kubectl get --raw /readyz >/dev/null 2>&1 || echo "api $(date -u +%T)"
curl -sf -o /dev/null --max-time 2 http://<load-balancer>/ || echo "lb $(date -u +%T)"
doneMachines are powered off at the provider by the harness; a customer cannot do that part.
2026-11-12, standard cluster, Kubernetes 1.36.6: control plane 3 × standard-2 (2 shared x86
vCPU, 4 GB), one node group of 2 × performance-4 (4 shared AMD vCPU, 8 GB).
| What | Result (raw output not kept) |
|---|---|
| CNCF conformance, hydrophone v1.36.6 | 443 of 443 passed, 1 h 57 min |
| Control-plane upgrade 1.36 to 1.37 | 15 min 0 s for 3 machines; each new machine joined in 18 to 30 s; LB 0 failed of 633 polls; API 30 failed of 633 (4.7 %), fixed |
| Node group upgrade, 2 nodes by surge | 8 min 38 s; drains 13 s and about 60 s; a volume's detach to attach 16 s; LB 3 failed of 382, fixed |
| One node powered off | NotReady after 64 s; replacement Ready 13 min after the power-off |
| One of three control-plane machines powered off | replaced in 14 min 34 s with no manual step; LB 0 failed of 639; API 4 failed |
| Whole run | 3,745 polls: LB 17 failed, API 36 failed |
The API failures during the upgrade came from a machine leaving etcd before it left traffic, the
LB failures from a drained node staying a target until it was deleted; both were fixed and the run
repeated on 2026-11-12 on a standard cluster with its control plane in two zones and one
performance-2 node (2 shared AMD vCPU, 4 GB): control-plane upgrade through the API 15 min 49 s,
node group upgrade of 1 node behind a PodDisruptionBudget 5 min, 931 polls with LB 0 and API 1
failed. The upstream autoscaler asked for a node 8 s after a pod went pending and the pod ran at
265 s; scale-down came after 372 s with the unneeded time set to 2 minutes (raw output not kept).
Later runs. Standard clusters have a control plane of 3 × standard-2; the 2026-11-12/13 cluster
ran Kubernetes 1.37.2 with 2 × performance-4 nodes, and its raw output is kept; for the other
rows it was not kept:
| Date | What | Result |
|---|---|---|
| 2026-11-12/13 | Create to active |
8 min 9 s |
| 2026-11-12/13 | One of three control-plane machines powered off | replaced in 13 min 12 s; LB 0 of 580 failed; API 3 of 580, longest gap 3 s |
| 2026-11-14 | All three control-plane machines powered off | an outside probe failed for about 11 min 50 s; the platform counted 11 unavailable minutes |
| 2026-11-14 | Same, with the outside probes counting | client failures for 6 min 18 s; the platform counted 6 minutes, the first by the probes alone |
| 2026-11-14 | Forced upgrade of the control plane | 16 min 7 s; 0 of 901 polls failed |
| 2026-11-14 | Restore from an etcd snapshot | 8 min 37 s; etcd restored in 2 s, kubeadm init 26 s; clients failed for about 2 min 11 s (89 polls) |
| 2026-11-15 | Restore of a deleted dev cluster, one node |
active in 1 min 34 s |
What these do not show: load on the API server, pod network throughput, storage throughput. No
performance measurement of the KMS plugin or of ews-k8s exists; the plugin is on the path of a
few calls a day by design.
Known limits
- The API server's readiness includes the KMS plugin, and the plugin's status check asks the
platform. A control-plane machine that cannot reach the platform fails
/readyzand the endpoint proxy closes its port, so the cluster API goes down for as long as the platform is unreachable (seen 2026-11-15 in our test installation when a machine was cut off for four minutes). Existing data keys are cached, so nothing becomes unreadable; the API is simply not served. - A revoked user's token stays valid until it expires: 10 minutes.
- No volume snapshots (the provider's volumes have none), no ReadWriteMany, 16 volumes per node.
- An abandoned node's volume waits for Kubernetes' 6-minute force detach before it follows its pod.
- UDP LoadBalancer Services are refused.
- A
devcluster's control plane is one machine: it is restarted, not replaced, and its etcd snapshots are the only copy off the machine. - A customer-managed key for Secret encryption is not built.
- The autoscaler acts only on node groups with autoscaling turned on.
- Without the outside probes, the start of an outage can be undercounted by up to about 1.5 minutes.