Clean Up Rok Scheduler¶
This guide will walk you through removing the Rok Scheduler, along with the Rok Scheduler Webhook.
Fast Forward
If you have already cleaned up the Rok Scheduler and the Rok Scheduler Webhook, expand this box to fast-forward.
- Proceed to the Verify section.
What You’ll Need¶
- A configured management environment.
- An existing Kubernetes cluster.
- An existing Rok deployment.
Check Your Environment¶
Before you remove Rok Scheduler and the Rok Scheduler Webhook, ensure your management environment has access to your Kubernetes cluster. Verify that you can list the nodes of your cluster:
Procedure¶
Go to your GitOps repository, inside your
rok-tools
management environment:root@rok-tools:~# cd ~/ops/deploymentsDelete the Rok Scheduler:
root@rok-tools:~/ops/deployments# rok-deploy --delete rok/rok-scheduler/overlays/deployDelete the Rok Scheduler Webhook:
root@rok-tools:~/ops/deployments# rok-deploy --delete rok/rok-scheduler-webhook/overlays/deploy
Verify¶
Ensure the Rok Scheduler deployment no longer exists:
root@rok-tools:~# kubectl get deploy -n rok-system rok-scheduler Error from server (NotFound): deployments.apps "rok-scheduler" not foundEnsure the Rok Scheduler Webhook deployment no longer exists:
root@rok-tools:~# kubectl get deploy -n rok-system rok-scheduler-webhook Error from server (NotFound): deployments.apps "rok-scheduler-webhook" not foundEnsure the Rok Scheduler Webhook configuration no longer exists:
root@rok-tools:~# kubectl get mutatingwebhookconfiguration rok-scheduler-webhook Error from server (NotFound): mutatingwebhookconfigurations.admissionregistration.k8s.io "rok-scheduler-webhook" not found
Summary¶
You have successfully removed the Rok Scheduler and the Rok Scheduler Webhook from your Kubernetes cluster.
What’s Next¶
The next step is to clean up all Rok components from your cluster.