Skip to content

Commit

Permalink
adding step to update coredns
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Jan 31, 2024
1 parent edf6dea commit 159a62b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gen3/bin/migrate-to-vpc-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ else
gen3 kube-setup-karpenter deploy --force || { gen3_log_err "kube-setup-karpenter failed"; exit 1; }
fi

# Cordon all the nodes before running gen3 roll all"
# Cordon all the nodes before running gen3 roll all
gen3_log_info "Cordoning all nodes"
kubectl get nodes --no-headers -o custom-columns=":metadata.name" | grep -v '^fargate' | xargs -I{} kubectl cordon {}

# Backup and update CoreDNS
kubectl get deployment coredns -n kube-system -o yaml > aws-k8s-coredns-old.yaml
kubectl set image deployment.apps/coredns -n kube-system coredns=602401143452.dkr.ecr.us-east-1.amazonaws.com/eks/coredns:v1.9.3-eksbuild.10

# Run a "gen3 roll all" so all nodes use the new mounted BPF File System
gen3_log_info "Cycling all the nodes by running gen3 roll all"
gen3 roll all --fast || exit 1
Expand Down

0 comments on commit 159a62b

Please sign in to comment.