Difference between revisions of "Template:EOT self managed node groups"
Jump to navigation
Jump to search
(Created page with " self_managed_node_groups = { spot = { instance_type = "m5.large" instance_market_options = { market_type = "spot" } pre_bootstrap_user_...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
self_managed_node_groups = { | self_managed_node_groups = { | ||
spot = { | spot = { | ||
− | instance_type = "m5.large" | + | instance_type = "[[m5.large]]" |
instance_market_options = { | instance_market_options = { | ||
market_type = "spot" | market_type = "spot" | ||
} | } | ||
− | pre_bootstrap_user_data = <<-EOT | + | [[pre_bootstrap_user_data]] = <<-EOT |
echo "foo" | echo "foo" | ||
export FOO=bar | export FOO=bar | ||
EOT | EOT | ||
− | [[bootstrap_extra_args]] = "--kubelet-extra-args '--node-labels=node.kubernetes.io/lifecycle=spot'" | + | [[bootstrap_extra_args]] = "[[--kubelet-extra-args]] '[[--node-labels]]=[[node.kubernetes.io]]/lifecycle=spot'" |
− | post_bootstrap_user_data = <<-EOT | + | [[post_bootstrap_user_data]] = <<-EOT |
cd /tmp | cd /tmp | ||
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm | sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm |
Latest revision as of 09:24, 29 August 2023
self_managed_node_groups = { spot = { instance_type = "m5.large" instance_market_options = { market_type = "spot" } pre_bootstrap_user_data = <<-EOT echo "foo" export FOO=bar EOT bootstrap_extra_args = "--kubelet-extra-args '--node-labels=node.kubernetes.io/lifecycle=spot'" post_bootstrap_user_data = <<-EOT cd /tmp sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm sudo systemctl enable amazon-ssm-agent sudo systemctl start amazon-ssm-agent EOT } }
Advertising: