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 infoto check all detail system information - run
vela system diagnoseto diagnose system’s health
- The system info command displays the cpu and memory metrics, the numbers of ready pods and desired pods.
vela system info
expected output
NAME NAMESPACE READY PODS IMAGE CPU(cores) MEMORY(bytes) ARGS ENVSkubevela-cluster-gateway vela-system 1/1 oamdev/cluster-gateway:v1.4.0 2m 28Mi apiserver --secure-port=9443 --secret-namespace=ve... -kubevela-vela-core vela-system 1/1 oamdev/vela-core:latest 13m 217Mi --metrics-addr=:8080 --enable-leader-election --op... -
- The system info command can displays system component details when you specify it by
-s.
vela system info -s kubevela-vela-core -n vela-system
expected output
metadata:annotations:deployment.kubernetes.io/revision: "2"meta.helm.sh/release-name: kubevelameta.helm.sh/release-namespace: vela-systemcreationTimestamp: "2022-08-09T15:11:20Z"generation: 3labels:app.kubernetes.io/instance: kubevelaapp.kubernetes.io/managed-by: Helmapp.kubernetes.io/name: vela-coreapp.kubernetes.io/version: 0.1.0controller.oam.dev/name: vela-corehelm.sh/chart: vela-core-0.1.0name: kubevela-vela-corenamespace: vela-systemresourceVersion: "658152"uid: 1e26c04b-9f47-4a81-bc95-1694e0eb0ed0spec:...(omitted for brevity)status:availableReplicas: 1conditions:- lastTransitionTime: "2022-08-09T15:11:20Z"lastUpdateTime: "2022-08-09T15:11:55Z"message: ReplicaSet "kubevela-vela-core-d7cb9c78d" has successfully progressed.reason: NewReplicaSetAvailablestatus: "True"type: Progressing- lastTransitionTime: "2022-08-16T15:27:00Z"lastUpdateTime: "2022-08-16T15:27:00Z"message: Deployment has minimum availability.reason: MinimumReplicasAvailablestatus: "True"type: AvailableobservedGeneration: 3readyReplicas: 1replicas: 1updatedReplicas: 1
vela system diagnose will helps you to diagnose the KubeVela’s health.
vela system diagnose
expected output
------------------------------------------------------Diagnosing APIService of cluster-gateway...Result: APIService of cluster-gateway is fine~------------------------------------------------------------------------------------------------------------Diagnosing health of clusters...Result: Clusters are fine~------------------------------------------------------
Last updated on Feb 9, 2023 by dependabot[bot]