Help improve this page
Want to contribute to this user guide? Choose the Edit this page on GitHub link that is located in the right pane of every page. Your contributions will help make our user guide better for everyone.
Delete a Fargate profile
This topic describes how to delete a Fargate profile. When you delete a Fargate profile, any Pods that were scheduled onto Fargate with the profile are deleted. If those Pods match another Fargate profile, then they’re scheduled on Fargate with that profile. If they no longer match any Fargate profiles, then they aren’t scheduled onto Fargate and might remain as pending.
Only one Fargate profile in a cluster can be in the DELETING
status at a time. Wait for a Fargate profile to finish deleting before you can delete any other profiles in that cluster.
You can delete a profile with any of the following tools:
eksctl
Delete a Fargate profile with eksctl
Use the following command to delete a profile from a cluster. Replace every example value
with your own values.
eksctl delete fargateprofile --name my-profile --cluster my-cluster
Amazon Web Services Management Console
Delete a Fargate profile with Amazon Web Services Management Console
-
Open the Amazon EKS console
. -
In the left navigation pane, choose Clusters. In the list of clusters, choose the cluster that you want to delete the Fargate profile from.
-
Choose the Compute tab.
-
Choose the Fargate profile to delete, and then choose Delete.
-
On the Delete Fargate profile page, enter the name of the profile, and then choose Delete.
Amazon CLI
Delete a Fargate profile with Amazon CLI
Use the following command to delete a profile from a cluster. Replace every example value
with your own values.
aws eks delete-fargate-profile --fargate-profile-name my-profile --cluster-name my-cluster