Kubernetes
Create a Cluster
Learn how to create a Kubernetes cluster
Prerequisites
- A DCP account (sign up here if you don't have one)
kubectlinstalled on your local machine
Creating a Cluster
- Log in to the DCP Console
- Navigate to Containers → Kubernetes
- Click Create Cluster
- Configure your cluster:
- Name:
my-first-cluster - Region: Select your preferred region
- Version: Select your preferred Kubernetes version
- Node Group: 1 node group with 2 workers (default sizing is fine for testing)
- Tier: When configuring a node group, select your preferred tier based on your requirements
- Name:
- Click Create
Cluster provisioning typically takes 2-5 minutes.
Connect to Your Cluster
Once your cluster status shows Ready:
- Click on your cluster name to open the details page
- Click Download Kubeconfig
- Move the file to your kubectl config directory:
mv ~/Downloads/my-first-cluster-kubeconfig.yaml ~/.kube/config
- Verify connectivity:
kubectl get nodes
You should see your worker nodes in Ready status.
Deploy a Sample Application
Deploy a simple nginx application to verify everything works:
kubectl create deployment nginx --image=nginx
kubectl expose deployment nginx --port=80 --type=ClusterIP
Verify the deployment:
kubectl get pods
Next Steps
- Connect to Your Cluster for more details
- Explore Service Tiers to understand available options