Kubernetes
Create, scale, upgrade and access a managed Kubernetes cluster.
Supported versions
When you create a cluster you choose a Kubernetes version from the list of supported versions. A cluster can later be upgraded to a newer MINOR or PATCH version, but you cannot skip a whole MINOR version (1.y to 1.y+1 is possible, for example, but not 1.y to 1.y+2).
Create a new cluster
- Select Compute > Kubernetes and click Add Kubernetes Cluster.
- Enter a name, description, zone, Kubernetes version and service offering.
- Choose the number of control and worker nodes (at least 2 vCPU / 2 GB RAM in total is required).
- Under Show Advanced Settings you can choose separate images and service offerings for the worker, control and (if you want) etcd nodes, as well as the network and SSH key.
- Click OK.
If creation succeeds, the cluster starts automatically and enters the Running state. If something goes wrong along the way, it ends up in Alert instead (the nodes ran, but the cluster could not be completed) or Error (the nodes could not be provisioned at all).
Stop a cluster
Select the cluster and click the stop icon. Only running clusters can be stopped.
Start a stopped cluster
Select the cluster and click the start icon. If it does not succeed, the cluster ends up in the Alert state rather than Running.
Scale a cluster
- Select the cluster (running or stopped) and click the scale icon.
- Enter the new number of worker nodes, and/or a new service offering.
Only scaling the service offering up is supported -- you cannot downgrade to a smaller offering afterwards.
Upgrade a cluster
- Select a running cluster and click the upgrade icon.
- Choose the new Kubernetes version.
Delete a cluster
Select the cluster and click the delete icon.
Access the cluster
Once the cluster has been created and is running, the Access tab gives you:
- A kubeconfig file to download, so you can reach the cluster with
kubectl. - Links to download
kubectlfor your own operating system. - Instructions for opening the cluster's web dashboard: run a local proxy with
kubectl --kubeconfig, then open the dashboard in your browser at the local URL shown. You sign in with a token, not with the kubeconfig file directly.proxy
Note: by default, containers in the cluster can reach the underlying node's user data and metadata. To prevent that, apply a NetworkPolicy blocking egress to 169.254.188.68/32 on port 80 -- see Kubernetes' own documentation on NetworkPolicy for the full syntax.