How to delete remaining Kubernetes Pods

1
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?
asked
1 answers
1

Hi,

 

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 mendixapps.privatecloud.mendix.com

$ kubectl delete mendixapps.privatecloud.mendix.com <env-id>

 

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

https://docs.mendix.com/developerportal/deploy/private-cloud-deploy/#72-deleting-the-cluster

https://docs.mendix.com/developerportal/deploy/private-cloud-deploy/#delete-storage

answered