mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Update proxy deployment script description (#245)
This commit is contained in:
parent
8791f7f05c
commit
1779c63882
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue