-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review of AWS modules and subsequent correction of RKE/RKE2/K3S recipes #145
Conversation
Rewrote AWS EC2 x RKE (split-role) recipe. The documentation has also been revised. tfvars example: prefix = "glovecchio"
aws_region = "eu-west-1"
master_nodes_count = 1
worker_nodes_count = 1
ssh_username = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234" |
Rewrote AWS EC2 x RKE2 recipe. The documentation has also been revised. tfvars example: prefix = "glovecchio"
aws_region = "eu-west-1"
instance_count = 2
ssh_username = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234" |
I will fix conflicts at the end of the review. |
Added Rancher deployment to the AWS EC2 x RKE (split-role) recipe. tfvars example: prefix = "glovecchio"
aws_region = "eu-west-1"
server_nodes_count = 1
worker_nodes_count = 1
ssh_username = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234" |
Rewrote AWS EC2 x K3S recipe. The documentation has also been revised. tfvars example: prefix = "glovecchio"
aws_region = "eu-west-1"
server_nodes_count = 1
worker_nodes_count = 1
ssh_username = "ubuntu"
rancher_hostname = "glovecchio"
rancher_password = "Mypassword.1234" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested all and worked very well.
recipes/upstream/aws/k3s/README.md
Outdated
|
||
```bash | ||
AWS_PROFILE=<profile name> terraform plan -var-file terraform.tfvars | ||
AWS_PROFILE=<profile name> terraform apply -var-file terraform.tfvars | ||
terraform init -upgrade ; terraform apply -target=module.k3s-first-server.tls_private_key.ssh_private_key -target=module.k3s-first-server.local_file.private_key_pem -target=module.k3s-first-server.local_file.public_key_pem -target=module.k3s-first-server.aws_key_pair.key_pair -target=module.k3s-first-server.aws_vpc.vpc -target=module.k3s-first-server.aws_subnet.subnet -target=module.k3s-first-server.aws_security_group.sg_allowall -auto-approve ; terraform apply -auto-approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's explore if there is a way to avoid such a long terraform apply
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leodotcloud, fixed as requested; now everything works with a single command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glovecchi0 can you take care of the conflicts? |
Yes; I'll work on It. |
…r-up into fix/review-aws-modules
Reviewed tests for AWS EC2 and AWS EC2 x RKE x Rancher Rebase Reviewed tests for AWS EC2 and AWS EC2 x RKE2 x Rancher Fixed code in path recipes/rke/split-roles/aws - Added Rancher deployment Fixed AWS x RKE2 instances count Rewrote AWS EC2 x K3S recipe Reviewed tests for AWS EC2 x RKE (split-roles) Fixed AWS x K3S README.md file Fixed AWS x K3S README.md file Fixed copy/paste issue Rebase Fixed all the AWS recipes Fixed RKE split-roles recipe One-destroy command - GKE x RKE,RKE2,K3s Reviewed tests for AWS EC2 and AWS EC2 x RKE x Rancher Fixed AWS x RKE2 instances count Reviewed tests for AWS EC2 x RKE (split-roles) Fixed AWS x K3S README.md file Fixed copy/paste issue Fixed RKE split-roles recipe Revised standalone RKE module for AWS Fixed recipes/standalone/aws/rke/README.md file
…r-up into fix/review-aws-modules
Reviewed AWS modules and rewrote AWS EC2 x RKE recipe.
No features have been modified or added, but only some issues have been resolved, including: #99 , #118 , #119 , and #120 .
The documentation has also been revised.
tfvars example: