You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/explanations/advanced-provider-configuration.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,23 +128,30 @@ amazon_web_services:
128
128
# Replace with your custom AMI ID
129
129
ami_id: ami-0abcdef1234567890
130
130
# Command to run before the node joins the cluster
131
-
pre_bootstrap_command: "echo 'Hello, World!'"
132
-
```
131
+
pre_bootstrap_command: |
132
+
#!/bin/bash
133
+
# This script is executed before the node is bootstrapped
134
+
# You can use this script to install additional packages or configure the node
135
+
# For example, to install the `htop` package, you can run:
136
+
# sudo apt-get update
137
+
# sudo apt-get install -y htop"
133
138
134
139
**Parameters:**
135
140
136
-
- `ami_id` (Optional): The ID of the custom AMI to use for the nodes in this group. If specified, the `ami_type` is automatically set to `CUSTOM`.
141
+
- `ami_id` (Optional): The ID of the custom AMI to use for the nodes in this group; this assumes the AMI provided is an EKS-optimized AMI derivative. If specified, the `ami_type` is automatically set to `CUSTOM`.
137
142
- `pre_bootstrap_command` (Optional): A command or script to execute on the node before
138
143
it joins the Kubernetes cluster. This can be used for custom setup or configuration
139
144
tasks. The format should be a single string in conformation with the shell syntax.
140
145
This command is injected in the `user_data` field of the launch template. For more
141
146
information, see [User Data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html).
142
147
148
+
> If you're using a `launch_template` with a custom `ami_id`, there's an issue with updating the `scaling`.desired_size` via Nebari configuration (terraform). To scale up, you must recreate the node group or adjust the scaling settings directly in the AWS Console UI (recommended). We are aware of this inconsistency and plan to address it in a future update.
149
+
143
150
:::note
144
151
If an `ami_id` is not provided, AWS will use the default Amazon Linux 2 AMI for the
145
-
specified instance type. You can find the latest optimized AMI IDs for Amazon EKS in you
146
-
cluster region by inspecting its respective SSM parameter. For more information, see
147
-
[Retrieve recommended Amazon Linux AMI IDs](https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html).
152
+
specified instance type. You can find the latest optimized AMI IDs for Amazon EKS in your
153
+
cluster region by inspecting its respective SSM parameters. For more information, see
154
+
[Retrieve recommended Amazon Linux AMI IDs](https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html).
0 commit comments