文档

支持

Health checks

Run health checks on your on-premises deployment
阅读时间1 分钟最后更新于 11 天前

Check the health of the pods

To check the health of the pods, run this command:
kubectl get pods -n <namespace>
Replace
<namespace>
with the Kubernetes namespace where the solution is deployed, as defined in your
manifest.yaml
file.
All pods must have the status Running and show the expected number of ready containers.

Inspect unhealthy pods

If a pod is not in a healthy state, inspect its details:
kubectl describe pod <pod-name> -n <namespace>
Check the pod logs:
kubectl logs <pod-name> -n <namespace>
For pods with multiple containers, specify the container:
kubectl logs <pod-name> -c <container-name> -n <namespace>

Uninstall and redeploy the solution

If a component is in a bad state and cannot perform a recover operation, you can use the vpctl tool to uninstall and redeploy a specific chart:
vpctl release uninstall --name <chart-name> --dry-runvpctl release uninstall --name <chart-name>vpctl release deploy --name <chart-name>