Uninstall

This is unreleased documentation for PodLock Next 🚧 version. Features here may not be released yet.
For up-to-date documentation, see the latest stable version (v0.0.1).

This guide walks you through completely removing PodLock from your Kubernetes cluster.

Uninstall the Helm chart

Remove the PodLock Helm release:

helm uninstall --namespace podlock podlock

Remove Custom Resource Definitions

Deleting the CRDs will also delete all LandlockProfile resources in your cluster.
kubectl delete crd landlockprofiles.podlock.kubewarden.io

Delete the namespace

Remove the PodLock namespace:

kubectl delete ns podlock

Clean up node-level resources (optional)

The PodLock NRI plugin stores helper binaries on each node in /opt/podlock. If you want to completely remove all traces of PodLock, run the following command on each node:

sudo rm -rf /opt/podlock