Skip to content

Commit

Permalink
let coredns autoscaler to scale coredns
Browse files Browse the repository at this point in the history
  • Loading branch information
mengqiy authored Aug 9, 2024
1 parent af785ad commit 177055d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/tasks/setup/eks/awscli-cp-with-vpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ spec:
kubectl set env daemonset/aws-node -n kube-system ENABLE_PREFIX_DELEGATION=true
# 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.
# Patching the coredns not to get scheduled on the monitoring node.
kubectl patch deployment coredns --patch '{
"spec": {
Expand Down Expand Up @@ -107,12 +106,11 @@ spec:
}
}
}' -n kube-system
kubectl scale --replicas 1000 deploy coredns -n kube-system
#ToDo - remove these comments after experimentation
# 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
# aws eks $ENDPOINT_FLAG --region $(params.region) wait cluster-active --name $(params.cluster-name)
# aws eks $ENDPOINT_FLAG --region $(params.region) wait cluster-active --name $(params.cluster-name)

0 comments on commit 177055d

Please sign in to comment.