diff --git a/tests/tasks/setup/eks/awscli-cp-with-vpc.yaml b/tests/tasks/setup/eks/awscli-cp-with-vpc.yaml index 6edcf30e..ca1e05c4 100644 --- a/tests/tasks/setup/eks/awscli-cp-with-vpc.yaml +++ b/tests/tasks/setup/eks/awscli-cp-with-vpc.yaml @@ -78,4 +78,12 @@ spec: # install csi drivers. kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=$(params.aws-ebs-csi-driver-version)" # TODO: Calculate replicas based on the cluster size going forward. - kubectl scale --replicas 20 deploy coredns -n kube-system \ No newline at end of file + kubectl scale --replicas 1000 deploy coredns -n kube-system + # Install EKS Pod Identity Agent + ENDPOINT_FLAG="" + if [ -n "$(params.endpoint)" ]; then + ENDPOINT_FLAG="--endpoint $(params.endpoint)" + fi + aws eks $ENDPOINT_FLAG create-addon --cluster-name $(params.cluster-name) --addon-name eks-pod-identity-agent --addon-version v1.0.0-eksbuild.1 + # confirm that EKS Pod Identity Agent pods are running + kubectl get pods -n kube-system | grep 'eks-pod-identity-agent' \ No newline at end of file