Google Kubernetes Engine
Standard Mode vs AutoPilot Mode
Network
VPC-native cluster (default)
-
A cluster that uses alias IP address ranges is called a
VPC-native
cluster. -
Take advantage of VPC Subnet Secondary IPv4 ranges (aka IP alias).
- Nodes use the subnet’s primary IP range.
- Pods use one of the subnet’s secondary IP ranges.
- Services use another secondary IP range.
-
Example VPC subnets in default VPC network:
- Benefits:
- Pod IP address ranges do not depend on custom static routes. They do not consume the system-generated and custom static routes quota. Instead, automatically-generated subnet routes handle routing for VPC-native clusters.
- You can create firewall rules that apply to just Pod IP address ranges instead of any IP address on the cluster’s nodes.
Route-based cluster: cluster that uses Google Cloud routes
Commands
KUBECONFIG=~/.kube/config_gcp gcloud container clusters get-credentials prod-cluster --region me-central2 --project juleb-304508
gcloud artifacts docker images list me-central2-docker.pkg.dev/juleb-304508/juleb
skopeo --insecure-policy copy docker://jed.ocir.io/axkqjfegxd3q/odoo:2f5cafcf docker://me-central2-docker.pkg.dev/juleb-304508/juleb/odoo:2f5cafcf