Workers: Cloud-Init
Custom actions may be configured on instance startup in an number of ways depending on the use-case and preferences.
See also:
Global
Cloud init configuration applied to all workers:
worker_cloud_init = [
{
content = <<-EOT
runcmd:
- echo "Global cloud_init using cloud-config"
EOT
content_type = "text/cloud-config",
},
{
content = "/path/to/file"
content_type = "text/cloud-boothook",
},
{
content = "<Base64-encoded content>"
content_type = "text/x-shellscript",
},
]
Pool-specific
Cloud init configuration applied to a specific worker pool:
worker_pools = {
pool_default = {}
pool_custom = {
cloud_init = [
{
content = <<-EOT
runcmd:
- echo "Pool-specific cloud_init using cloud-config"
EOT
content_type = "text/cloud-config",
},
{
content = "/path/to/file"
content_type = "text/cloud-boothook",
},
{
content = "<Base64-encoded content>"
content_type = "text/x-shellscript",
},
]
}
}
Default Cloud-Init Disabled
When providing a custom script that calls OKE initialization:
worker_disable_default_cloud_init = true