CoreWeave
Search…
Useful Commands
Useful commands to help you get comfortable using Kubernetes on CoreWeave Cloud
Kubernetes is harder to pronounce than it is to use. If you've never used it before, you'll be comfortable deploying your Docker containers on CoreWeave Cloud in no time. We've put the following command reference together to help you perform simple tasks as you get better acquainted.
SIMPLE STATUS COMMANDS
1
kubectl get [resource_type]
2
kubectl get deployments # Shows a list of all running deployments
3
kubectl get pods # Shows a list of all running pods
4
kubectl get services # Shows a list of all running services
5
kubectl get pvc # Show a list of all active Persistent Volume Claims
Copied!
DESCRIBE PODS AND GET LOGS
1
kubectl describe [resource_type] [resource_name/id]
2
kubectl describe pod [pod_id] # Shows detailed information about the status of a pod
3
kubectl logs -f [pod_id] # Gets streaming logs of a pod
Copied!
DELETE RESOURCES
1
kubectl delete [resource_type] [resource_name/id]
2
kubectl delete pod [pod_id] # Deletes a pod, deployment will start a new one
3
kubectl delete deployment [deployment_name] # Deletes a deployment, will not restart
Copied!
SCALE DEPLOYMENTS
1
kubectl scale --replicas=[number] [resource_type]/[resource_name/id]
2
3
## Scale a deployment to [number] of replicas
4
kubectl scale --replicas=[number] deployments/[deployment_name]
Copied!
INTERACT WITH RUNNING PODS
1
kubectl exec -it [pod_id] /bin/bash # Opens a bash shell in your pod
Copied!
Last modified 1yr ago
Copy link