Skip to content

Commit

Permalink
Install EKS Pod Identity Agent for CNI Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hakuna-matatah committed Dec 4, 2023
1 parent 93e3fc3 commit e952e88
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/tasks/setup/eks/awscli-cp-with-vpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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'

0 comments on commit e952e88

Please sign in to comment.