Kubernetes — getting started

Last updated:

Kubernetes (often abbreviated as K8s) is an open-source container orchestration platform for automating the deployment, scaling, and management of containerized applications. American Cloud Kubernetes Service (ACKS) is American Cloud's fully-managed Kubernetes offering — you create a cluster, the platform provisions control and worker nodes for you, and you interact with it through kubectl.

This article walks through installing kubectl, creating an ACKS cluster, downloading its kubeconfig, adding block storage, and scaling or upgrading the cluster from the portal.

Install kubectl

macOS

bash
brew install kubernetes-cli

Linux

bash
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

Windows

See the official kubectl install guide.

Create an ACKS cluster

  1. In the left navigation, under Compute, select Kubernetes.
  2. In the top right of the Kubernetes page, click + Create Cluster.
Kubernetes page with the Create Cluster button highlighted
  1. On the Create Kubernetes cluster page, fill in the Configuration section:
    • Cluster name — lowercase letters, numbers, and hyphens (for example, my-app-k8).
    • Region — for example, US Central.
    • Package — sets the size and pricing tier of each node (for example, Scale ACKS — 4 vCPU, 8 GB memory).
    • Kubernetes version — the version to install (for example, 1.33.1).
    • Network (optional) — an existing VPC tier. Leave blank and CloudStack creates an isolated network automatically.
Create Kubernetes cluster Configuration section
  1. Configure the Node Pool:

    • Control nodes — 1–11. Three or more control nodes provide HA via an etcd quorum that tolerates a one-node failure.
    • Worker nodes — 1–32.
  2. In Options:

    • SSH keypair — recommended; allows SSH access to cluster nodes. Add a key first under Account → SSH keys if you don't have one (see Managing SSH keys).
    • Description — optional.
  3. Review the estimated cost at the bottom and click Create Cluster.

Create Kubernetes cluster Node Pool and Options sections

The cluster appears in the Clusters list with status CREATING. Provisioning takes a few minutes.

Clusters list showing a new cluster with status CREATING

Once status is RUNNING, the row populates with version, region, package, node counts, and per-node specs.

Clusters list showing a cluster with status RUNNING

Cluster detail page

Click a cluster in the list to open its detail page. The page summarizes the cluster and exposes four action buttons in the top right.

Cluster detail page with Kubeconfig, Power, Manage, and Delete actions

Sections on the page:

  • Node Pool — control node count, worker node count, total CPU, total memory.
  • Configuration — region, IP address, Kubernetes version, package, autoscaling state, total nodes, creation time, description.
  • Nodes — each node's name, role (control/worker), state, IP, CPU, memory, and root disk.
  • Load Balancer Rules — the rules attached to the cluster's public IP (the Kubernetes API server rule, plus any rules you've added). See Load balancer.

Actions

  • Kubeconfig — download the cluster's kubeconfig file.
  • Power — start or stop the cluster.
  • Manage — scale, autoscale, or upgrade (see below).
  • Delete — permanently remove the cluster and its nodes.

Download and use the kubeconfig

  1. On the cluster detail page, click Kubeconfig to download the file (typically to your ~/Downloads folder).
  2. Point kubectl at it:
bash
export KUBECONFIG=~/Downloads/kube.conf
  1. Verify the connection:
bash
kubectl get nodes

You should see the control and worker nodes listed.

Add block storage for persistent volumes

New clusters don't come with a storage class, so a PersistentVolumeClaim has nowhere to get a volume. Two steps fix that: install the CloudStack CSI driver, then add the acks-block storage class. After that, each claim gets its own American Cloud block storage volume, and its data survives pod restarts.

This works only in the us-west-0 and us-central-0 regions, and the driver needs Kubernetes 1.31 or newer. Volumes are premium NVMe block storage at $12 per 100 GB a month, billed by the hour.

Step 1: install the CSI driver

The driver uses the CloudStack credentials your cluster already has (the cloudstack-secret secret in kube-system), so there's nothing to configure. Install version 0.14.1:

bash
kubectl apply -f https://github.com/leaseweb/cloudstack-csi-driver/releases/download/v0.14.1/manifest.yaml

Check that the cloudstack-csi-controller and cloudstack-csi-node pods are running:

bash
kubectl get pods -n kube-system | grep cloudstack-csi

Step 2: add the acks-block storage class

The storage class needs the disk offering ID for your cluster's region. The console and API don't show it, so here it is:

RegionDisk offering ID
us-west-0ac1798d1-420e-4caa-916e-b792326472b6
us-central-055e7da92-42df-42bb-8094-062df4829600

Save this as acks-block.yaml. It's set for us-west-0, so swap in the other ID if your cluster is in us-central-0.

yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: acks-block
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.cloudstack.apache.org
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
parameters:
  csi.cloudstack.apache.org/disk-offering-id: ac1798d1-420e-4caa-916e-b792326472b6

Apply it:

bash
kubectl apply -f acks-block.yaml

Using acks-block

  • acks-block is the default class, so a claim with no storageClassName uses it.
  • A claim that names another class stays Pending until you change it to acks-block. Manifests from Amazon EKS that ask for gp2 or gp3 need this change.
  • A new claim also shows Pending until a pod that uses it is scheduled. That's normal. The volume is created when the pod is scheduled onto a node.
  • To grow a volume, raise the claim's resources.requests.storage. It grows while the pod keeps running.
  • A volume attaches to one node at a time, so use ReadWriteOnce. ReadWriteMany isn't supported.
  • Deleting a claim deletes its volume and the data on it.

Scale, autoscale, and upgrade

Open the cluster's detail page and click Manage in the top right. Three options appear.

Manage menu showing Scale Workers, Autoscale, and Upgrade

Scale workers

Change the worker node count manually.

  1. Click Manage → Scale Workers.
  2. In the Scale Worker Nodes dialog, set the new worker count (1–20) on the slider.
  3. Click Apply.
Scale Worker Nodes dialog with a slider

Autoscale

Click Manage → Autoscale to enable automatic worker scaling based on cluster load.

Upgrade

Click Manage → Upgrade to upgrade the cluster to a newer Kubernetes version. If you're already on the latest available version, the dialog says so.

Upgrade Kubernetes Version dialog
Contact us