-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOM-59987] Update linux_user_data.tpl for singe-node based on AL2023 (…
…#288) One of the changes from Amazon Linux 2 to Amazon Linux 2023 is switching to nodeadm for the initialization process. The single-node option sets some labels, so we're updating the linux_user_data.tpl to be in YAML format. --------- Co-authored-by: Paul Johnson <[email protected]>
- Loading branch information
1 parent
a5c458e
commit 07917e8
Showing
4 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
${pre_bootstrap_user_data ~} | ||
%{ if length(cluster_service_ipv4_cidr) > 0 ~} | ||
export SERVICE_IPV4_CIDR=${cluster_service_ipv4_cidr} | ||
%{ endif ~} | ||
B64_CLUSTER_CA=${cluster_auth_base64} | ||
API_SERVER_URL=${cluster_endpoint} | ||
/etc/eks/bootstrap.sh ${cluster_name} ${bootstrap_extra_args} --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $API_SERVER_URL | ||
${post_bootstrap_user_data ~} | ||
--- | ||
apiVersion: node.eks.aws/v1alpha1 | ||
kind: NodeConfig | ||
spec: | ||
cluster: | ||
name: ${cluster_name} | ||
apiServerEndpoint: ${cluster_endpoint} | ||
certificateAuthority: ${cluster_auth_base64} | ||
cidr: ${cluster_service_ipv4_cidr} | ||
kubelet: | ||
flags: ["${bootstrap_extra_args}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters