Container Linux Config

Container Linux allows you to configure machine parameters, configure networking, launch systemd units on startup, and more via Container Linux Configs. These configs are then transpiled into Ignition configs and given to booting machines. Head over to the docs to learn about the supported features.

You can provide a raw Ignition config to Container Linux via the Google Cloud console's metadata field user-data or via a flag using gcloud.

This is the human-readable config file. This should not be immediately passed to Container Linux. Learn more.

# This config is meant to be consumed by the config transpiler, which will# generate the corresponding Ignition config. Do not pass this config directly# to instances of Container Linux.etcd:# All options get passed as command line flags to etcd.# Any information inside curly braces comes from the machine at boot time.# multi_region and multi_cloud deployments need to use {PUBLIC_IPV4}advertise_client_urls:"http://{PRIVATE_IPV4}:2379"initial_advertise_peer_urls:"http://{PRIVATE_IPV4}:2380"# listen on both the official ports and the legacy ports# legacy ports can be omitted if your application doesn't depend on themlisten_client_urls:"http://0.0.0.0:2379"listen_peer_urls:"http://{PRIVATE_IPV4}:2380"# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3# specify the initial size of your cluster with ?size=Xdiscovery:"https://discovery.etcd.io/<token>"

This is the raw machine configuration, which is not intended for editing. Learn more. Validate the config here.

The Alpha channel closely tracks master and is released frequently. The newest versions of system libraries and utilities will be available for testing. The current version is Container Linux 1688.0.0.

The Stable channel should be used by production clusters. Versions of Container Linux are battle-tested within the Beta and Alpha channels before being promoted. The current version is Container Linux 1632.3.0.

Additional storage

Additional disks attached to instances can be mounted with a .mount unit. Each disk can be accessed via /dev/disk/by-id/google-<disk-name>. Here's the Container Linux Config to format and mount a disk called database-backup:

This is the human-readable config file. This should not be immediately passed to Container Linux. Learn more.

# This config is meant to be consumed by the config transpiler, which will# generate the corresponding Ignition config. Do not pass this config directly# to instances of Container Linux.storage:filesystems:-mount:device:/dev/disk/by-id/scsi-0Google_PersistentDisk_database-backupformat:ext4systemd:units:-name:media-backup.mountenable:truecontents:|[Mount]What=/dev/disk/by-id/scsi-0Google_PersistentDisk_database-backupWhere=/media/backupType=ext4[Install]RequiredBy=local-fs.target

This is the raw machine configuration, which is not intended for editing. Learn more. Validate the config here.