# Health checks

> Run health checks on your on-premises deployment

## Check the health of the pods

To check the health of the pods, run this command:

```sh
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:

```sh
kubectl describe pod <pod-name> -n <namespace>
```

Check the pod logs:

```sh
kubectl logs <pod-name> -n <namespace>
```

For pods with multiple containers, specify the container:

```sh
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:

```sh
vpctl release uninstall --name <chart-name> --dry-run
vpctl release uninstall --name <chart-name>
vpctl release deploy --name <chart-name>
```
