Destroying the AWS EKS cluster
When you are done with the AWS EKS cluster, you can release its resources.
Stop the pod running nginx
$ kubectl delete pod nitro-nginx-pod
When issuing the delete pod option, the Anjuna Runtime will first send a SIGTERM signal to the main process inside the enclave, allowing it to do any needed activities to allow for a graceful termination before exiting. The main process has a grace period of 30 seconds for any termination activities. After the main process exits or the grace period expires, the Anjuna Runtime will perform any remaining termination activities and then destroy the enclave. If the grace period expires before the enclave finishes its activities, a message is sent to the Pod logs indicating that a forceful termination of the enclave occurred due to the expiration of the grace period.
Anjuna plans on providing additional options for specifying the grace period when deleting Anjuna Enclave PODs in K8s in a future release.