UCloud logo UCloud logo UCloud
v2026.7.0-k8s.18
  1. UCloud/Core
  2. 1. Introduction
  3. 2. Projects
  4. 3. API Tokens
    1. 3.1. Platform API Tokens
    2. 3.2. Provider API Tokens
  5. 4. Accounting
  6. 5. Orchestration
  7. 6. Frontend
  8. UCloud/IM for Slurm-based HPC
  9. 7. Installation
  10. 8. Architecture and Networking
  11. 9. User and Project Management
  12. 10. Filesystem Integration
    1. 10.1. Inter-provider file transfers
  13. 11. Slurm Integration
    1. 11.1. Application Management
    2. 11.2. Built-in Applications
  14. 12. Reference
    1. 12.1. Configuration
    2. 12.2. CLI
  15. 13. Appendix
    1. 13.1. Built-in Application Index
  16. UCloud/IM for Kubernetes
  17. 14. Installation
  18. 15. Architecture and Networking
  19. 16. Filesystem Integration
  20. 17. Compute Jobs
    1. 17.1. Networks
    2. 17.2. Public Links
    3. 17.3. Public IPs
    4. 17.4. License Servers
    5. 17.5. SSH Servers
    6. 17.6. Job Audit Log
    7. 17.7. Virtual machines
  21. 18. AI Inference
    1. 18.1. Architecture
    2. 18.2. Chat Middleware
    3. 18.3. Chat Playground
    4. 18.4. Model Discovery and Catalog
    5. 18.5. Dynamo Deployments
    6. 18.6. Usage and Accounting
    7. 18.7. Audit
    8. 18.8. Metrics
    9. 18.9. Security
  22. 19. Integrated applications
    1. 19.1. Syncthing
    2. 19.2. Integrated terminal
    3. 19.3. Kubernetes clusters
      1. 19.3.1. Architecture
      2. 19.3.2. Stacks
      3. 19.3.3. Creating a cluster
      4. 19.3.4. Cluster dashboard
      5. 19.3.5. Networking and storage
      6. 19.3.6. Maintenance and upgrades
      7. 19.3.7. Backup and recovery
      8. 19.3.8. Reference
  23. 20. UCX applications
    1. 20.1. Hello world
    2. 20.2. Data binding
    3. 20.3. UI events
    4. 20.4. Component reference
    5. 20.5. API reference
  24. 21. Reference
    1. 21.1. Configuration
    2. 21.2. CLI
  25. Style guidelines
  26. 22. Branding and identity for UCloud
  27. 23. Documentation
  28. H: Procedures
  29. 24. H: Procedures
  30. 25. H: Introduction
  31. 26. H: Auditing
  32. 27. H: Auditing scenario
  33. 28. H: GitHub actions
  34. 29. H: Deployment
  35. 30. H: 3rd party dependencies (risk assesment)
  36. Glossary
  37. 31. Glossary
  1. Links
  2. Source Code
  3. Releases

Networking and storage

The Kubernetes cluster application is a pre-release. It is not ready for production use, and the behavior and the interfaces can change.

A cluster has a fixed address plan. The nodes connect on a private network, the Kubernetes API is served through a public link, and the applications of the cluster are served through the Ingress of the cluster. All files of the cluster live on the state drive.

Address plan

NetworkAddress rangePurpose
Machine network172.31.0.0/16The private addresses of the nodes.
Pod network10.14.0.0/16The pods of the cluster.
Service network10.15.0.0/16The Kubernetes services of the cluster.

The node number decides the private address of a node. The node with the number n receives the address 172.31.((n+2) div 256).((n+2) mod 256), so the first control plane node is 172.31.0.3. The creator reserves the address in the private network before it creates the machine. A replacement node keeps the number and the address of the node that it replaces.

The nodes of a cluster run flannel with the VXLAN backend over the private interface.

Kubernetes API

The Kubernetes API is available in two ways:

  • Inside the cluster: every control plane node serves the API on port 6443. The nodes reach each other on the private network.
  • Outside the cluster: the user connects to a public link named <cluster-id>-api. The link targets the service of the cluster, and the control plane jobs are the members of the service. The user downloads a kubeconfig from the dashboard and connects with kubectl.
flowchart LR
    client["Client<br/>kubectl"]:::diagram-external-code-bracket
    link["Public link<br/>&lt;cluster-id&gt;-api"]:::diagram-provider-globe-alt
    service["Service<br/>Kubernetes API | port: 6443"]:::diagram-provider-server
    cp["Control plane nodes<br/>Service members"]:::diagram-provider-server

    client -->|"HTTPS"| link
    link --> service
    service --> cp

The path from kubectl to a control plane node. It does not show the internal access, the TLS details, or the maintenance that removes a node from the service.

The controller keeps the members of the service equal to the control plane jobs of the cluster. A control plane node that is under maintenance leaves the service, so the platform does not route the API traffic to a node that restarts. See Traffic suspension. If the API becomes unreachable, check the service, its members and the public link on the dashboard.

The cluster uses two kubeconfigs. The public kubeconfig points at the public link and it belongs to the user. The internal kubeconfig points at https://127.0.0.1:6443 and it belongs to the dashboard service. Both files hold the administrator token of the cluster. See Reference.

Application access

The controller watches the Ingress resources of the cluster. For every host, the controller compares the host with the public link products of the provider:

  • The host must start with the prefix and end with the suffix of a public link product.
  • The name between the prefix and the suffix must start with a letter and it must be 5 to 63 characters long.

The controller creates one public link per eligible host. The link targets the Ingress service of the cluster, which serves port 30080 on the control plane nodes and forwards the traffic to Traefik. Traefik serves the packaged Ingress controller of k3s.

EventBehavior
A user adds an IngressThe controller creates the public link on the next reconcile.
A user removes an IngressThe controller deletes the public link of the host on the next reconcile.
The creation of a link failsThe controller retries after 5 minutes.
The controller restartsIt reconciles again from the live Ingress resources and the owned links.

A host that does not match a public link product receives no link. The controller does not use the domain of another product and it does not create a link for an Ingress without a host rule.

Ports

PortServesOn
6443Kubernetes APIControl plane nodes
30080Ingress trafficThe ingress service, on the control plane nodes
43102Cluster dashboardControl plane nodes
43103Recovery applicationThe recovery job, while a recovery is active
9444Maintenance API of the node agentEvery node, on its private address

Storage

The state drive holds every file of the cluster. It is a normal drive of the workspace with the labels of the stack. The creator selects a drive product of the provider that users can create.

<state drive>
├── management/
│   ├── kubeconfig
│   ├── kubeconfig-internal
│   ├── kube-api-token
│   ├── tokens/
│   └── maintenance-tokens/
├── nodes/
│   └── <node number>/
│       └── input/
│           ├── node.json
│           ├── server-token
│           ├── agent-token
│           ├── controller-token
│           ├── maintenance-enrollment-secret
│           └── stack-identity.json
├── bundles/
│   └── <script revision>/<release>/
├── backups/
│   └── <backup id>/
├── k3s-storage/
└── vm-disks/
    └── <hostname>/
FolderHoldsMounted on
management/The kubeconfigs, the administrator token and the published join tokens.Control plane nodes, read-write. The controller reads a part of it.
nodes/<number>/input/The input of one node, written before the machine starts.Control plane nodes mount the whole nodes/ folder read-write, because the token publisher writes to the inputs of the other nodes. Every node mounts its own input read-only.
bundles/<revision>/<release>/The versioned scripts that bootstrap a node.Every node, read-only.
backups/<backup id>/The etcd snapshot, the credentials and the metadata of one backup.Control plane nodes, read-write.
k3s-storage/The persistent volumes of the workloads of the cluster.Every node, read-write.
vm-disks/<hostname>/The disk of one virtual machine.The node that uses the disk.

Persistent volumes

The first control plane node installs the local-path provisioner of Rancher. The provisioner uses the shared k3s-storage/ folder, so a persistent volume is available from every node and a pod can mount it after a move to another node. The provisioner creates the default storage class local-path.

A persistent volume lives in the k3s-storage/ folder of the state drive. The user does not work with the volume as a normal folder; the workloads use it through Kubernetes.

VM disks

Every machine boots from a disk that the application creates on the state drive. The disk size comes from the pool of the node. The application creates the disk folder before it starts the machine.

Deletion

The Delete cluster action removes the machines and the cluster record. The platform deletes the state drive and every file in it, including the backups. A copy of a file that the user needs must be taken before the deletion.

Previous Cluster dashboard
Next Maintenance and upgrades