diff --git a/proxy/deploy-proxy-for-env.sh b/proxy/deploy-proxy-for-env.sh index 8c584f8f3..50a00008c 100755 --- a/proxy/deploy-proxy-for-env.sh +++ b/proxy/deploy-proxy-for-env.sh @@ -13,8 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# This script builds the GAE artifacts for a given environment, moves the -# artifacts for all services to a designated location, and then creates a +# This script prepares the proxy k8s manifest, pushes it to the clusters, and +# kills all running pods to force k8s to create new pods using the just-pushed +# manifest. if [[ $# -ne 1 ]]; then echo "Usage: $0 alpha|crash" @@ -34,10 +35,9 @@ do sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}.yaml" | \ kubectl replace -f - # Alpha does not have canary - if [[ ${environment} != "alpha" ]] - then - sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}-canary.yaml" | \ - kubectl replace -f - + if [[ ${environment} != "alpha" ]]; then + sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}-canary.yaml" | \ + kubectl replace -f - fi kubectl delete pods --all done < <(gcloud container clusters list --project ${project} | grep proxy-cluster)