# Kubernetes on Quake AI

Source: https://docs.quake.ai/docs/kubernetes/concepts/kubernetes
Markdown: https://docs.quake.ai/docs/kubernetes/concepts/kubernetes.md

---

# Kubernetes on Quake AI

The Quake AI Kubernetes service ([OpenStack Magnum](https://docs.openstack.org/magnum/latest/)) automates cluster provisioning on top of existing Compute, Network, and Storage infrastructure. You define the cluster shape through a reusable template, and the platform provisions the master nodes, worker nodes, networking, and stable control-plane endpoints. You are responsible for operating the cluster after provisioning, including control plane availability and upgrades. Once the cluster is running, you manage workloads with standard Kubernetes tools like `kubectl` and Helm.

Amazon EKS, Azure AKS, Google GKE, DigitalOcean DOKS, and Hetzner's Kubernetes offering are the managed equivalents, and they hide the control plane from you. Here a **cluster** is either a Magnum cluster from a template or one you run yourself on [instances](/docs/compute/concepts/instances) with kubeadm or k3s, so control-plane sizing, upgrades, and etcd backups are yours to operate unless the template encodes those choices.

For general Kubernetes concepts (pods, deployments, services, namespaces), see the [official Kubernetes documentation](https://kubernetes.io/docs/concepts/). This page focuses on how Quake AI implements and operates the Kubernetes service.

## What the Kubernetes service provisions

<Figure size="md" caption="Cluster topology with a stable API endpoint, a control plane backed by etcd, and a separate worker plane">

```d2
direction: down

cp: Control plane {
  api: API server
  sched: Scheduler
  ctrl: Controller manager
  etcd: etcd {shape: cylinder}
  api -> etcd
  sched -> api
  ctrl -> api
}

wp: Worker plane {
  w1: Worker VM 1\nkubelet + runtime
  w2: Worker VM 2\nkubelet + runtime
  w3: Worker VM 3\nkubelet + runtime
}

endpoint: API endpoint

endpoint -> cp.api
cp -> wp: schedule pods
```

</Figure>

When you create a cluster, the Kubernetes service orchestrates multiple platform resources on your behalf:

| Resource | Role |
|---|---|
| **Master VMs** | Run the Kubernetes API server, scheduler, controller manager, and etcd. Provisioned as Compute instances. |
| **Worker VMs** | Run the kubelet and container runtime. Your application pods are scheduled here. |
| **Network** | A dedicated network and subnet for intra-cluster communication, created via the Network service. |
| **Control-plane endpoints** | A stable Kubernetes API endpoint when master load balancing is enabled. Clusters with multiple master nodes also use a stable etcd endpoint. |
| **Router** | Connects the cluster network to the external network for outbound traffic and floating IP access. |
| **Persistent volumes** | Backed by Block Storage volumes through the Cinder CSI driver. |

The underlying VMs use Fedora CoreOS images with the container runtime and Kubernetes components pre-installed. The Automation service (Heat) orchestrates the provisioning sequence as a stack, which you can inspect under **Automation** > **Stacks** in the console.

## Cluster templates

A **cluster template** is a reusable blueprint that defines the parameters the Kubernetes service needs to provision a cluster:

- **Kubernetes version** and container orchestration engine
- **Compute flavors** for master and worker nodes
- **Network driver** (Flannel or Calico) and external network
- **Volume driver** for persistent storage (Cinder)
- **TLS settings**, Docker storage driver, and registry configuration
- **Labels** that control feature flags (autoscaler, dashboard, network policies)

You create a template once and reuse it for multiple clusters. Platform-provided templates (e.g., `Standard-V2.0-k8s-calico-fc38_v1.24.16`) are available by default and cover common Kubernetes versions and network configurations. You can also create custom templates tailored to your requirements.

Separating the template from the cluster means you can standardize configurations across teams and environments: define a production template with three master nodes, Calico networking, and TLS enabled, and a development template with a single master and Flannel for lower cost.

## How Quake AI Kubernetes compares

The Kubernetes service sits between fully self-managed Kubernetes and the managed Kubernetes offerings from hyperscale providers. Understanding where it falls helps you set the right expectations.

| | Self-managed K8s | Quake AI Kubernetes | Managed K8s (EKS / GKE / AKS) |
|---|---|---|---|
| **Control plane** | You provision and manage | Provisioned by Magnum; you operate | Platform-managed, SLA-backed |
| **Master nodes** | Your VMs, your maintenance | Your VMs (in your project quota), provisioned automatically | Invisible platform infrastructure |
| **Worker nodes** | Your VMs, your maintenance | Your VMs, provisioned automatically | Managed node groups or your VMs |
| **Networking setup** | Manual (CNI, API endpoint, routing) | Automated (Flannel or Calico, control-plane endpoints, router) | Automated, cloud-native integration |
| **Cluster upgrades** | Manual across all nodes | New template + new cluster | Rolling, platform-managed |
| **etcd** | Your VMs, your backups | Your VMs, your backups | Platform-managed, redundant |
| **Control plane SLA** | None (you own uptime) | None (your VMs, your uptime) | Platform SLA (99.95%+) |
| **Cost model** | Pay for all VMs | Pay for all VMs (master + worker) | Worker nodes only (control plane free or flat fee) |

The Kubernetes service automates the provisioning that you would otherwise do manually with `kubeadm` or similar tools: creating VMs, installing the container runtime, bootstrapping the control plane, configuring networking, and setting up stable control-plane endpoints. Scaling worker nodes is a single API call or console action rather than a manual VM-and-join workflow.

What the Kubernetes service **does not** handle after provisioning:

- **Control plane operations.** Master node availability, etcd backups, and certificate rotation are your responsibility.
- **Cluster upgrades.** Upgrading Kubernetes versions requires creating a new cluster from an updated template and migrating workloads.
- **Workload management.** You deploy, update, and monitor your applications with `kubectl`, Helm, or your preferred Kubernetes tooling.
- **In-cluster networking policies.** The platform sets up the network driver; you configure Kubernetes NetworkPolicies, Ingress, and Services.
- **Application-level security.** RBAC, pod security standards, and secrets management are your responsibility.



The current service works well for teams comfortable operating Kubernetes who want automated infrastructure provisioning without managing the underlying VMs, networking, and control-plane endpoints manually.



## Resource requirements and quotas

Kubernetes clusters consume Compute, Network, and Storage quotas. Plan your project quotas before creating clusters.

| Cluster size | Master nodes | Worker nodes | Minimum vCPU | Minimum RAM | Minimum block storage | Floating IPs |
|---|---|---|---|---|---|---|
| Minimal (dev/test) | 1 | 1 | 4 shared | 4 GB | 180 GB | 3 |
| Small production | 3 | 2 | 34 dedicated | 80 GB | 500 GB | 4 |
| Medium production | 3 | 5 | 46 dedicated | 128 GB | 1 TB | 7 |



A single-master cluster cannot be upgraded to multiple masters later. If you plan to run production workloads, start with three master nodes for high availability.



To check your current quota usage, run:

```bash
openstack quota show
```

Or navigate to **Home** > **Overview** in the console to view vCPU, RAM, and storage usage against your limits. If your quota is insufficient, contact Quake AI support to request an increase before creating the cluster.

## Cluster lifecycle

| Phase | What happens |
|---|---|
| **Create** | The Kubernetes service provisions VMs, networking, and control-plane endpoints from the cluster template. Status progresses from `CREATE_IN_PROGRESS` to `CREATE_COMPLETE`. |
| **Run** | The cluster is active. You interact with it via `kubectl` using a kubeconfig file retrieved from the CLI. |
| **Scale** | Add or remove worker nodes through the console, CLI, or API. The platform provisions or removes VMs accordingly. |
| **Update** | Modify cluster properties (node count, labels). Status shows `UPDATE_IN_PROGRESS` during changes. |
| **Delete** | The platform tears down the associated VMs, networks, control-plane endpoints, and Heat stack. |

The platform monitors cluster health continuously. The console displays both the operational status (`ACTIVE`, `UPDATE_IN_PROGRESS`) and a health status based on node and control plane checks.

## See also

- [Kubernetes service overview](/docs/kubernetes): use cases, guides index, and security considerations
- [How to create a cluster template](/docs/kubernetes/how-to/create-cluster-template)
- [How to create a Kubernetes cluster](/docs/kubernetes/how-to/create-cluster)
- [How to manage a Kubernetes cluster](/docs/kubernetes/how-to/manage-cluster)
- [How Quake AI uses OpenStack](/docs/platform/migration/openstack)
- [Kubernetes documentation](https://kubernetes.io/docs/): official Kubernetes concepts and reference
