Cluster scaling
Scaling a cluster from the GCP Console
A node pool, is a subset of node instance within a cluster. They all have the same configuration. Node pools use a NodeConfig specification.
Scaling a cluster using the gcloud command
gcloud container clusters resize projectdemo --node-pool default-pool --size 6
Scale up a cluster with autoscaling
Downscaling
Setting a node pool size
Controlling pod placement
Controlled scheduling
- labels and taints on nodes
- node affinity rules
- toleration in deployment specification
If the nodes labels are changed, running pods are not affected. Node selector is only used during pod scheduling.
Affinity and anti-affinity
Pod placement
Taints allow a node to repel Pods
- affinity and anti-affinity rules on Pods.
- taints on nodes
How to get software
-
Build it yourself, and supply your own YAML
-
Use Helm to install software into your cluster
- Use GCP Marketplace to install both open-source and commercial software