Deploying a Pod to a Fargate instance
You can see from the previous output eksctl
has created not only the profile but also an execution role to allow Fargate Pods to use the AWS services and automatically assign the private subnets in the VPC.
If we now take one of the manifests previously used in this book and simply change the namespace to the fargate-workload
namespace and deploy it, we will see the Pod is deployed on a Fargate instance rather than on EC2 workers:
apiVersion: apps/v1 kind: Deployment metadata: name: simple-web namespace: fargate-workload spec: replicas: 1 selector: matchLabels: app: simple-nginx-app template: metadata: labels: app: simple-nginx-app spec: containers: ...