How to delete remaining Kubernetes Pods

I have set up a Mendix for Private Cloud environment on EKS Fargate. I deployed an app and then deleted it along with the Environment from the Developer Portal. However, the Kubernetes Pods with the Environment ID remain. I tried the following commands, but they cause a restart: $ kubectl delete deployment $ kubectl delete service $ kubectl delete pod How can I delete these deployments and Pods?
1 answers



Perhaps the resource is remained due to it being deployed as a Custom Resource Definition (CRD).

Mendix for Private Cloud create multiple CRDs to manage mendix app using operator, you can try list it out with this command.

$ kubectl get crd | grep mendix


To delete remaining application pods, you can try:

$ kubectl get

$ kubectl delete <env-id>


You can also checkout these docs for official refence on how to clean up remaining resources.