User Data is Gibberish
Problem:
If you right click a node in the AWS Console to check the userdata, it looks like a binary or encrypted file.
Solution to problem / Documentation Request / Add the following to the README.md
Why it looked odd in the 1st place
How to see the cleartext userdata:
Step 1 enable ssh
Step 2 ssh
Step 3 sudo cat /var/lib/cloud/instance/user-data.txt.i. #Shows you the cleartext userdata
Step 4 cat /var/log/cloud-init-output.log #Shows you the output
Also a Code Comment Request:
Can you add a code comment / in line documentation specifing which userdata is master nodes, and which is worker nodes. I ended up needing to add this to both to get BigBang Umbrella Chart Working.
variable "pre_userdata" {
description = "Custom userdata to run immediately before rke2 node attempts to join cluster, after required rke2, dependencies are installed"
type = string
default = <<-EOT
sysctl -w vm.max_map_count=262144 #Needed for ECK to work
setenforce 0 #SELinux Permissive Needed for istio to work, crashloops with enforcing on
EOT
}
Edited by Christopher McGrath