team-a had admin in its own namespace and nothing else. It could not list team-b's pods or read team-b's secrets; the API said Forbidden both times. Then it created one pod, and the next command printed team-b's database password, team-b-only-s3cret. Three commands after that it was system:masters on the cluster.
That is the honest shape of the OpenStack vs Kubernetes question when more than one team shares the platform. Both give each team its own space and both refuse cross-tenant API calls. The difference is what a tenant can ask the platform to run. CloudSpinx builds and runs OpenStack private clouds in Kenya and Kubernetes clusters for teams across East Africa, and we put two tenants on each in Google Cloud's Johannesburg region to see where each boundary actually sits: k3s v1.37.2 on one machine, and DevStack with OVN on another.
Kubernetes: one shared kernel
The setup is what most teams build first. Each team gets a namespace and a RoleBinding to the built-in admin ClusterRole inside it. team-b runs a pod called payroll-db with its password mounted from a Secret.
The API boundary held. team-a got Forbidden on get secrets -n team-b and on get pods -n team-b, and Forbidden again when it tried to delete a NetworkPolicy team-b had written. It cannot patch its own Namespace object either, which matters in a minute.
The network did not hold, and it is not meant to. From a curl pod in team-a, http://payroll-db.team-b.svc.cluster.local answered 200 in 11 ms. The Kubernetes docs say so plainly: "By default, a pod is non-isolated for ingress; all inbound connections are allowed" (network policies). Once team-b applied a default-deny ingress policy to its own namespace, the same curl timed out with exit code 7. Every team has to remember to do that, in every namespace, and a new namespace on this cluster came with no NetworkPolicy, no ResourceQuota and no LimitRange.
Then the pod that matters. team-a asked for a pod with privileged: true, hostPID: true and the node's / mounted at /host. Nothing in the namespace said no, so the API admitted it. From inside, cat /host/var/lib/kubelet/pods/*/volumes/kubernetes.io~secret/creds/password printed team-b's password, because a mounted Secret is a file on the node. chroot /host and the k3s kubeconfig got "connection refused" on 127.0.0.1:6443, since the pod still sat in its own network namespace. nsenter -t 1 -m -u -n -i fixed that, and k3s kubectl auth whoami came back as system:admin in system:masters. From there it read team-b's secret through the API and listed every namespace on the cluster.
Single node, so the node the pod escaped to also held the admin kubeconfig. On a worker node the same pod gets that node's kubelet credentials and every secret mounted there, which we did not test.
This was a single-node cluster, so the node the pod landed on also held the admin kubeconfig. On a cluster with separate control plane nodes, the same pod on a worker gets that worker's kubelet credentials and every secret mounted on it, not cluster-admin on the spot. We did not test that. The Kubernetes multi-tenancy guide describes the same path: containers "offer a weaker isolation boundary than virtual machines", and an attacker on a node can use the kubelet's permissions to move laterally.
The label that closes it, and what it does not do
The cluster admin, not team-a, set pod-security.kubernetes.io/enforce=restricted on team-a's namespace. team-a tried to remove the label and was refused, because admin does not include patching namespaces. The privileged pod was then rejected at admission with seven violations listed, hostPID, privileged and hostPath among them.
Two things it did not do. The client pod already running in team-a, which also breaks the restricted level, kept running: the label only warned about it. Pod Security Admission checks a pod when it is created, which our k3s, RKE2 and kubeadm comparison also saw on RKE2, whose default Pod Security config is privileged until you switch on its CIS profile. And it does nothing about sharing. team-a scaled a deployment to three pods of 1 CPU on a node with 4 allocatable, and team-b's 1 CPU pod sat Pending with "0/1 nodes are available: 1 Insufficient cpu". A ResourceQuota of 1 CPU that team-a could not delete stopped new pods, yet read 3 used against 1 hard while the old pods kept running; team-b only got scheduled after those pods were gone.
So a Kubernetes tenant is safe when the cluster admin has set three things on every namespace before handing it over: the restricted label, a default-deny policy and a quota. Miss one and the boundary is the goodwill of the team inside it.
OpenStack: separate kernels
On DevStack we made proj-a and proj-b, put alice in one and bob in the other with only the member role, and let each build a network, a router and a server.
alice went after bob's server through the API seven ways. The results:
| What alice tried | What OpenStack said |
|---|---|
| List servers in all projects | 403, os_compute_api:servers:detail:get_all_tenants |
| Show bob's server or network by UUID | "No Server found", "No Network found" |
| Create a port on bob's network | "No Network found" |
| Create a provider network on the physical net | 403, create_network:provider:network_type |
| Pin a server to a named compute host | 403, servers:create:forced_host |
| List hypervisors | 403, os-hypervisors:list-detail |
| Raise her own project's instance quota | 403, os-quota-sets:update |
That last row is the one Kubernetes needed a careful admin for. A new project had a quota from its first second, 10 instances, 20 cores and 51,200 MB of RAM, and a member cannot change it. Nova would not even let a member choose which hypervisor to land on. Her server ran its own kernel, 5.15.0-117-generic from the cirros image, on a host running 7.0.0-1018-gcp.
The data plane started closed. From inside alice's server, bob's fixed address and his floating IP both dropped all three pings, and a TCP connect to his floating IP on port 22 failed. That is the default security group doing what the Neutron guide says it does: it "by default allows all egress traffic and denies all ingress traffic" (OpenStack networking introduction). In our run its ingress rules only admitted members of the same group. When bob opened ICMP from anywhere, his floating IP answered three for three in under 8 ms. His fixed address on the project network still dropped every packet. Opening the door was bob's decision, made in his own project, and it exposed what he put on the public side and nothing behind it.
Which one, then
If every team on the platform trusts every other team, run Kubernetes alone with the three namespace defaults set by whoever owns the cluster. One engineering organization with several squads is that case, and a private cloud underneath it is cost you do not need. One team running its own VMs needs neither tenancy model; that is Proxmox, and we say so in the OpenStack vs Proxmox decision.
OpenStack earns its place when the tenants do not trust each other: subsidiaries with their own admins, external paying customers, a university where students get root. The boundary there is a hypervisor and a project network, and the tenant cannot argue it away with a pod spec. Those platforms usually end up with both, Kubernetes clusters per tenant on top of OpenStack VMs, and that second layer belongs in the cost of a private cloud from the first estimate. When the clusters are ours to run, they come from our managed Kubernetes service.
If you already run a shared cluster, check it before you decide anything. kubectl get ns -L pod-security.kubernetes.io/enforce shows every namespace with an empty column where no enforcement exists, and kubectl get networkpolicy -A shows which teams wrote a policy at all. An empty column next to a namespace whose team can create pods is the climb above, waiting for someone to try it.
Send us who consumes the platform and how isolated they need to be, through the OpenStack scoping form, answering "Who consumes it?" and "Networking", or on WhatsApp at +254 713 403 044. If you have a cluster already, paste the output of those two commands into "Anything we should know?". You get back which of the two we would build for those tenants, or whether hardening the cluster you have is enough, which for one team or a few trusted ones it usually is.