System Info and Diagnose

Vela CLI provide a command to diagnose the system and show the system information. It can help check if the system is running in a health state.

You can:

  • run vela system info to check all detail system information
  • run vela system diagnose to diagnose system’s health

Vela System Info

  1. The system info command displays the cpu and memory metrics, the numbers of ready pods and desired pods.
  1. vela system info

expected output

  1. NAME NAMESPACE READY PODS IMAGE CPU(cores) MEMORY(bytes) ARGS ENVS
  2. kubevela-cluster-gateway vela-system 1/1 oamdev/cluster-gateway:v1.4.0 2m 28Mi apiserver --secure-port=9443 --secret-namespace=ve... -
  3. kubevela-vela-core vela-system 1/1 oamdev/vela-core:latest 13m 217Mi --metrics-addr=:8080 --enable-leader-election --op... -
  1. The system info command can displays system component details when you specify it by -s.
  1. vela system info -s kubevela-vela-core -n vela-system

expected output

  1. metadata:
  2. annotations:
  3. deployment.kubernetes.io/revision: "2"
  4. meta.helm.sh/release-name: kubevela
  5. meta.helm.sh/release-namespace: vela-system
  6. creationTimestamp: "2022-08-09T15:11:20Z"
  7. generation: 3
  8. labels:
  9. app.kubernetes.io/instance: kubevela
  10. app.kubernetes.io/managed-by: Helm
  11. app.kubernetes.io/name: vela-core
  12. app.kubernetes.io/version: 0.1.0
  13. controller.oam.dev/name: vela-core
  14. helm.sh/chart: vela-core-0.1.0
  15. name: kubevela-vela-core
  16. namespace: vela-system
  17. resourceVersion: "658152"
  18. uid: 1e26c04b-9f47-4a81-bc95-1694e0eb0ed0
  19. spec:
  20. ...(omitted for brevity)
  21. status:
  22. availableReplicas: 1
  23. conditions:
  24. - lastTransitionTime: "2022-08-09T15:11:20Z"
  25. lastUpdateTime: "2022-08-09T15:11:55Z"
  26. message: ReplicaSet "kubevela-vela-core-d7cb9c78d" has successfully progressed.
  27. reason: NewReplicaSetAvailable
  28. status: "True"
  29. type: Progressing
  30. - lastTransitionTime: "2022-08-16T15:27:00Z"
  31. lastUpdateTime: "2022-08-16T15:27:00Z"
  32. message: Deployment has minimum availability.
  33. reason: MinimumReplicasAvailable
  34. status: "True"
  35. type: Available
  36. observedGeneration: 3
  37. readyReplicas: 1
  38. replicas: 1
  39. updatedReplicas: 1

Vela System Diagnose

vela system diagnose will helps you to diagnose the KubeVela’s health.

  1. vela system diagnose

expected output

  1. ------------------------------------------------------
  2. Diagnosing APIService of cluster-gateway...
  3. Result: APIService of cluster-gateway is fine~
  4. ------------------------------------------------------
  5. ------------------------------------------------------
  6. Diagnosing health of clusters...
  7. Result: Clusters are fine~
  8. ------------------------------------------------------