Kubernetes clusters
The Kubernetes cluster application is a pre-release. It is not ready for production use, and the behavior and the interfaces can change.
The Kubernetes cluster application is an integrated application that a service provider publishes to the application catalog. An end-user opens the application to create a Kubernetes cluster on the machines of the provider. The application builds the cluster from k3s and operates it for the user.
The application creates the cluster as a stack: one group of resources that belong together. The stack holds the state drive, the private network, the service and the public links of the cluster. UCloud/IM for Kubernetes creates and manages the machines of the stack. See Architecture.
flowchart TB
user["End-user<br/>Personal workspace or project"]:::diagram-external-user-group
core["UCloud/Core<br/>Web interface and APIs"]:::diagram-external-ucloud
app["Application<br/>Kubernetes cluster application"]:::diagram-provider-puzzle-piece
cluster["Cluster<br/>K3s on virtual machines"]:::diagram-provider-kubernetes
clients["Client applications<br/>Reached through public links"]:::diagram-external-user-group
user -->|"opens the application"| core
core -->|"starts a session"| app
app -->|"creates and maintains"| cluster
user -->|"connects with kubectl"| cluster
clients -->|"reach the applications of the cluster"| cluster
The systems around the Kubernetes cluster application. It does not show the parts of the application, or the parts of one cluster.
What a cluster provides
| Part | Purpose |
|---|---|
| Control plane | An odd number of nodes, from 1 to 7, that run the Kubernetes API server and etcd. Most clusters use 1 node or 3 nodes. |
| Workers | One or more pools of worker nodes. Each pool has its own machine type and disk size. The workloads of the user run on the workers. |
| Kubernetes API | A public link that serves the Kubernetes API on port 6443. The user downloads a kubeconfig from the dashboard and connects with kubectl. |
| Cluster dashboard | The web interface of the cluster. It shows the state of the cluster, the Kubernetes resources, the maintenance operations, the backups and the permissions. |
| Application access | The controller watches the Ingress resources of the cluster and creates a public link for every eligible host. |
| Storage | The local-path provisioner serves persistent volumes from shared storage. A volume is available from every node. See Networking and storage. |
| Backups | A backup coordinator takes hourly etcd snapshots. A cluster keeps up to 48 hourly and 14 daily backups. See Backup and recovery. |
| Maintenance | Kubernetes upgrades, operating-system updates and node removal, one node at a time. An automatic policy can run them inside a time window. See Maintenance and upgrades. |
Enabling the application
The provider publishes the application to the application catalog once. The provider also configures the platform for the resources that a cluster needs. The platform must offer:
- machine types with virtual-machine support for the nodes;
- a public link product for the Kubernetes API and the Ingress hosts;
- a service product for the Kubernetes API and the Ingress traffic;
- private networks, so that the nodes can reach each other on a fixed address plan;
- a drive product that users can create for the state drive of the stack.
The provider publishes the application executable as a UCX application and signs it with the provider key. See Reference for the manifest and the publication steps.
Limits
| Limit | Value |
|---|---|
| Control plane nodes | An odd number from 1 to 7 |
| Nodes in total | 256 |
| Cluster ID | At most 30 characters from a-z, 0-9 and - |
| Worker pool names | At most 30 characters from a-z, 0-9 and - |
| Disk per node | From 10 GB to 1024 GB |
The Reference holds the full set of limits.
What the application does not do
- It does not manage the workloads that run on the cluster. The user owns the workloads, the Kubernetes objects and the applications that Ingress exposes.
- It does not use the Kubernetes cluster of the provider. It creates a separate cluster on virtual machines.
- It does not upgrade the nodes before the provider or the user enables maintenance.
Troubleshooting
| Symptom | Checks |
|---|---|
| The cluster stays in the provisioning phase | Check the jobs of the nodes and their logs. Check that the state drive and the node input files exist, and that the machines can pull the image. |
| The cluster enters the error phase | Read the failure reason on the dashboard home page. The cluster record holds the same reason. |
| The cluster stays in the cleanup-pending phase | Read the pending resources on the dashboard home page or the provisioning view. The application retries the cleanup. You can also remove the listed job or reservation yourself. Maintenance, backup and recovery stay available. |
kubectl cannot connect | Check the API public link, the service of the cluster, and the members of the service. See Networking and storage. |
| An application is not reachable | Check the Ingress host, the public link of the host, and the controller log. See Networking and storage. |
| A node never becomes ready | Check the join tokens in the node input, the k3s unit on the node, and the node agent. |
| A backup does not run | Check that a control plane node is reachable and that the node agent answers. See Backup and recovery. |
| Automatic maintenance does not run | Check the policy, the window and the checks on the dashboard page. See Maintenance and upgrades. |
Next steps
- Architecture describes the processes, the machines and the stack KV-state.
- Creating a cluster describes the deployment and the start of a cluster.
- Cluster dashboard describes the web interface of a cluster.
- Networking and storage describes the address plan, the public links and the files of a cluster.
- Maintenance and upgrades describes the node operations, the rolling upgrade and the automatic policy.
- Backup and recovery describes the backups and the disaster recovery.
- Reference holds the limits, the ports, the records of the stack KV-state and the deployment details.
UCloud