mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-26 03:11:06 +01:00
docs: Add Bottlerocket example (#1296)
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
This commit is contained in:
24
examples/bottlerocket/userdata.toml
Normal file
24
examples/bottlerocket/userdata.toml
Normal file
@@ -0,0 +1,24 @@
|
||||
# https://github.com/bottlerocket-os/bottlerocket/blob/develop/README.md#description-of-settings
|
||||
[settings.kubernetes]
|
||||
api-server = "${endpoint}"
|
||||
cluster-certificate = "${cluster_auth_base64}"
|
||||
cluster-name = "${cluster_name}"
|
||||
${additional_userdata}
|
||||
|
||||
# Hardening based on https://github.com/bottlerocket-os/bottlerocket/blob/develop/SECURITY_GUIDANCE.md
|
||||
|
||||
# Enable kernel lockdown in "integrity" mode.
|
||||
# This prevents modifications to the running kernel, even by privileged users.
|
||||
[settings.kernel]
|
||||
lockdown = "integrity"
|
||||
|
||||
# The admin host container provides SSH access and runs with "superpowers".
|
||||
# It is disabled by default, but can be disabled explicitly.
|
||||
[settings.host-containers.admin]
|
||||
enabled = ${enable_admin_container}
|
||||
|
||||
# The control host container provides out-of-band access via SSM.
|
||||
# It is enabled by default, and can be disabled if you do not expect to use SSM.
|
||||
# This could leave you with no way to access the API and change settings on an existing node!
|
||||
[settings.host-containers.control]
|
||||
enabled = ${enable_control_container}
|
||||
Reference in New Issue
Block a user