- Home
- Operations Guide
- Administer an MKE cluster
- Configure Kubernetes descheduler
- Verify the descheduler deployment
Verify the descheduler deployment#
After enabling the descheduler, confirm that the deployment, Pods, ConfigMap, and arguments are all in the expected state.
-
Check that the deployment is ready and that the Pods are running:
kubectl get deployment -n kube-system ucp-descheduler -o wide kubectl get pods -n kube-system \ -l app.kubernetes.io/name=ucp-deschedulerThe deployment
Readycount must matchreplicasand all Pods must display asRunning. -
Inspect the policy ConfigMap:
kubectl get configmap -n kube-system ucp-descheduler-policy \ -o yaml | head -80The
data.policy.yamlmust be present. Until you customize the policy,profilesmay be an empty list. -
Verify the arguments passed to the descheduler container:
kubectl get deployment -n kube-system ucp-descheduler \ -o jsonpath='{.spec.template.spec.containers[0].args}{"\n"}'Arguments must start with
--policy-config-fileand/etc/descheduler/policy.yaml, followed by yourextra_flagsvalues or the default interval. -
Check recent log output for errors:
kubectl logs -n kube-system \ -l app.kubernetes.io/name=ucp-descheduler --tail=50No crash loop must be present. With an empty policy, log output between intervals is minimal.