Skip to content

Commit

Permalink
Update proxy deployment script description
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglai committed Aug 28, 2019
1 parent 844c470 commit e7dd524
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions proxy/deploy-proxy-for-env.sh
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit e7dd524

Please sign in to comment.