Ensure that your Google Kubernetes Engine (GKE) cluster nodes use the Container-Optimized OS (cos_containerd), a managed, optimized, and hardened base OS provided by GKE to limit the host's attack surface.
Container runtimes manage container execution and simplify container management for Kubernetes. Among the available options is Container-Optimized OS with containerd (i.e., cos_containerd), an industry-standard runtime supported by Kubernetes and widely adopted. cos_containerd's layered architecture enables advanced GKE features like gVisor and Image Streaming, and it offers improved resource efficiency and security compared to the Docker runtime.
Audit
To determine if your Google Kubernetes Engine (GKE) cluster nodes are using Container-Optimized OS, perform the following operations:
Remediation / Resolution
To ensure that the Container-Optimized OS (i.e., cos_containerd) is used for your Google Kubernetes Engine (GKE) cluster nodes, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Containerd node images
- Node images
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud container clusters list
- gcloud container clusters describe
- gcloud container node-pools list
- gcloud container node-pools describe
- gcloud container clusters upgrade