Quickstart
This guide takes you from an empty account to a cluster running a workload you can reach from the internet.
Before you start
Section titled “Before you start”You need:
- A Hyperkub account with a payment method registered.
kubectlinstalled locally.
If the Kubernetes vocabulary below is unfamiliar, skim the glossary first.
1. Create a cluster
Section titled “1. Create a cluster”- Open the control plane and go to Clusters → Create cluster.
- Pick a region. Choose the one closest to your users.
- Give the cluster a name. Lowercase letters, digits and hyphens.
- Accept the default Kubernetes version unless you need a specific one.
- Select a node pool size. One small pool is fine to start; you can add pools later.
- Confirm.
The cluster appears with status provisioning while the control plane and the
first nodes are built. It is ready when the status turns running.
Doing the same thing over the API
curl -X POST https://api.hyperkub.com/v1/clusters \ -H "X-Tess-Token: $HYPERKUB_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "quickstart", "region_id": "sto1" }'The response carries the new cluster’s id and status. Poll
GET /v1/clusters/{id} until status is running.
2. Download a credential
Section titled “2. Download a credential”To talk to the cluster you need a kubeconfig.
- Open the cluster and go to Credentials.
- Choose Create credential, then download the file.
- Save it as
~/.kube/hyperkub-quickstart.yaml.
Point kubectl at it and confirm the nodes are up:
export KUBECONFIG=~/.kube/hyperkub-quickstart.yamlkubectl get nodesYou should see one row per node in your pool, each Ready. If not, see
Connecting with kubectl.
3. Run something
Section titled “3. Run something”Deploy a container and expose it inside the cluster:
kubectl create deployment hello \ --image=nginxdemos/hello:plain-text
kubectl expose deployment hello \ --port=80 --target-port=80Check that the pod is running:
kubectl get pods4. Reach it from your machine
Section titled “4. Reach it from your machine”Forward the Service to a local port:
kubectl port-forward service/hello 8080:80Open http://localhost:8080. You should get a response from the container.
5. Clean up
Section titled “5. Clean up”Delete the resources so they stop costing money:
kubectl delete service hellokubectl delete deployment helloTo remove the cluster entirely, use Clusters → … → Delete. This destroys every node in it and cannot be undone.
Next steps
Section titled “Next steps”- Connecting with kubectl — credentials in depth.
- How Hyperkub is organised — the resource model.
- Using the API — automate all of the above.