-
Notifications
You must be signed in to change notification settings - Fork 1
updates the AWS code #190
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
base: main
Are you sure you want to change the base?
updates the AWS code #190
Conversation
481c35a to
d3e8fca
Compare
| } | ||
| } | ||
|
|
||
| variable "snode_deploy_on_k8s" { |
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.
why remove this variable
variable "snode_deploy_on_k8s" {
| while [[ $# -gt 0 ]]; do | ||
| arg="$1" | ||
| case $arg in | ||
| --max-lvol) |
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.
This parameter is required during sn configure which is done as part of terraform setup
| enabled = true | ||
| eks-nodes = { | ||
| desired_size = 2 |
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.
why remove the desired_size, min_size and max_size
aws/eks.tf
Outdated
| } | ||
| } | ||
|
|
||
| # resource "aws_eks_access_entry" "example" { |
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.
why comment the code?
| data "aws_caller_identity" "current" {} | ||
|
|
||
| locals { | ||
| volume_device_names = ["/dev/sdi", "/dev/sdj", "/dev/sdk", "/dev/sdl", "/dev/sdm", "/dev/sdn", "/dev/sdo"] |
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.
This logic allows us add more ebs volume per storage node
| } | ||
|
|
||
| # can be used for testing caching nodes | ||
| resource "aws_instance" "extra_nodes" { |
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.
We need this instance as we use it to deploy the master node of k3s
| EOF | ||
| } | ||
|
|
||
| resource "aws_ebs_volume" "storage_nodes_ebs" { |
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.
This change clearly removing the support for EBS backed storage
Make the AWS code run on EKS only