Cleanup and Uninstall Guide
This guide provides instructions for completely removing Observo Site and its components from your VM installation.
Pre-cleanup Steps
1. Backup Important Data
# Backup Kubernetes configurations
kubectl get all -n observo-client -o yaml > observo-backup.yaml
# Backup nginx configurations
sudo cp /etc/nginx/conf.d/stream/tcp-proxy.conf nginx-backup.conf
# Backup k3s configuration
sudo cp /etc/rancher/k3s/k3s.yaml k3s-backup.yamlUninstallation Steps
1. Remove Observo Components
# Remove all resources in observo-client namespace
kubectl delete namespace observo-client
# Verify removal
kubectl get namespace observo-client2. Clean Up k3s Installation
# Stop k3s service
sudo systemctl stop k3s
# Uninstall k3s
/usr/local/bin/k3s-uninstall.sh
# Remove k3s binary
sudo rm /usr/local/bin/k3s3. Remove Nginx Configuration
# Remove Observo-specific configurations
sudo rm /etc/nginx/conf.d/stream/tcp-proxy.conf
# Restart nginx to apply changes
sudo systemctl restart nginx4. Clean Up System Files
# Remove k3s data directory
sudo rm -rf /var/lib/rancher/k3s
# Remove kubectl configuration
rm ~/.kube/config
# Remove temporary files
rm -rf /tmp/k3s*Storage Cleanup
1. Remove Persistent Data
# Check mounted volumes
df -h
# Remove data directories
sudo rm -rf /var/lib/observo
sudo rm -rf /opt/local-path-provisioner2. Clean Container Storage
# Remove containerd data
sudo rm -rf /var/lib/containerd
# Remove container runtime files
sudo rm -rf /run/k3sFor additional assistance, refer to:
Last updated
Was this helpful?

