Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
remove maintenance exclusion from gcp install (#234)
Browse files Browse the repository at this point in the history
It's not Mac compatible the date command and it's not strictly required
so removing
  • Loading branch information
samos123 authored Sep 6, 2023
1 parent dd9c5e5 commit 5efc144
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions install/gcp/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ gcloud container clusters create ${CLUSTER_NAME} --location ${REGION} \
--addons GcsFuseCsiDriver
fi

# Configure a maintenance exclusion to prevent automatic upgrades for 160 days
if ! gcloud container clusters describe ${CLUSTER_NAME} --location ${REGION} | grep -q notouchy; then
START=$(date -I --date="-1 day")
END=$(date -I --date="+160 days")
gcloud container clusters update ${CLUSTER_NAME} --region ${REGION} \
--add-maintenance-exclusion-name notouchy \
--add-maintenance-exclusion-start ${START} \
--add-maintenance-exclusion-end ${END} \
--add-maintenance-exclusion-scope no_minor_or_node_upgrades
fi


if ! gcloud container node-pools describe g2-standard-8 --cluster ${CLUSTER_NAME} --region ${REGION} -q >/dev/null; then
nodepool_args=(--spot --enable-autoscaling --enable-image-streaming
--num-nodes=0 --min-nodes=0 --max-nodes=3 --cluster ${CLUSTER_NAME}
Expand Down

0 comments on commit 5efc144

Please sign in to comment.