# label all nodes whose name contains "neo4j-pool" for n in $(kubectl get nodes -o name | grep neo4j-pool | sed 's|node/||'); do kubectl label node "$n" neo4j-pool=true --overwrite done LOCATION=europe-west3-b CLUSTER=predicpro-cluster POOL=neo4j-pool gcloud container node-pools update "$POOL" --cluster "$CLUSTER" --location "$LOCATION" --node-labels neo4j-pool=true gcloud container node-pools update "$POOL" --cluster "$CLUSTER" --location "$LOCATION" --node-taints neo4j=reserved:NoSchedule
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter