Debugging Application
KubeVela supports several CLI commands for debugging your applications, they can work on control plane and help you access resources across multi-clusters. Which also means you can play with your pods in managed clusters directly on the hub cluster, without switching KubeConfig context. If you have multiple clusters in on application, the CLI command will ask you to choose one interactively.
List Apps
List all your applications.
vela ls
expected output
Show status of app
vela status
can give you an overview of your deployed multi-cluster application.
vela up -f https://kubevela.net/example/applications/first-app.yaml
vela status first-vela-app
expected output
vela status --pod
can list the pod status of your application.
vela status first-vela-app --pod
expected output
vela status --endpoint
can list the access endpoints of your application.
vela status first-vela-app --endpoint
expected output
vela status --tree --detail
can list resources of your application.
vela status first-vela-app --tree --detail
expected output
Show logs of app
vela logs
shows pod logs in managed clusters.
vela logs first-vela-app
expected output
Execute commands inside pod container
vela exec
helps you execute commands in pods in managed clusters.
vela exec first-vela-app -it -- ls
expected output
Access port locally
vela port-forward
can discover and forward ports of pods or services in managed clusters to your local endpoint.
vela port-forward first-vela-app 8001:8000
You can curl this app by curl http://127.0.0.1:8001/
.
More CLI Details
Please refer to the CLI docs.