Kubernetes API quickstart

Deploy a managed Kubernetes cluster (Talos Linux, Cilium CNI, Ceph CSI, Envoy Gateway) in minutes via the REST API or phctl CLI.

1. Pick a cluster type

curl -X GET https://www.pidginhost.com/api/v1/kubernetes/cluster-types/ \
  -H "Authorization: Token $PIDGINHOST_API_TOKEN"

Available types include development and production clusters, with package limits returned by the endpoint.

2. Create the cluster

curl -X POST https://www.pidginhost.com/api/v1/kubernetes/clusters/ \
  -H "Authorization: Token $PIDGINHOST_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "prod-cluster",
    "cluster_type": "prod",
    "resource_pool_package": "cloudv-4",
    "resource_pool_size": 3,
    "kube_version": ""
  }'

3. Download the kubeconfig

curl -X GET https://www.pidginhost.com/api/v1/kubernetes/clusters/<id>/kubeconfig/ \
  -H "Authorization: Token $PIDGINHOST_API_TOKEN" \
  -o kubeconfig.yaml

export KUBECONFIG=$PWD/kubeconfig.yaml
kubectl get nodes

Same flow with phctl CLI

phctl k8s cluster create \
  --name prod-cluster \
  --type prod \
  --package cloudv-4 \
  --pool-size 3 \
  --kube-version 
phctl k8s cluster kubeconfig <id> > kubeconfig.yaml

Need the full reference?

Every endpoint with Python, JavaScript, PHP, Go, Rust, CLI, and curl examples.

Ready to launch your infrastructure?

Create an account in minutes. The free cloud tier includes one server per customer after at least €10 in confirmed account deposits. Money-back eligibility varies by service.