1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 15:21:46 +00:00

Make GKE the default in alpha and qa (#2624)

This commit is contained in:
Lai Jiang
2024-12-17 12:40:03 -05:00
committed by GitHub
parent f649d960c1
commit da8df1f4d9
7 changed files with 66 additions and 14 deletions

View File

@@ -32,13 +32,13 @@ do
gcloud container clusters get-credentials "${parts[0]}" \
--project "${project}" --zone "${parts[1]}"
sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}.yaml" | \
kubectl replace -f -
kubectl replace -f "./kubernetes/proxy-service.yaml" --force
kubectl apply -f -
kubectl apply -f "./kubernetes/proxy-service.yaml" --force
# Alpha does not have canary
if [[ ${environment} != "alpha" ]]; then
sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}-canary.yaml" | \
kubectl replace -f -
kubectl replace -f "./kubernetes/proxy-service-canary.yaml" --force
kubectl apply -f -
kubectl apply -f "./kubernetes/proxy-service-canary.yaml" --force
fi
# Kills all running pods, new pods created will be pulling the new image.
kubectl delete pods --all