Skip to content

Conversation

@boddumanohar
Copy link
Contributor

@boddumanohar boddumanohar commented Jul 14, 2025

Make the AWS code run on EKS only

}
}

variable "snode_deploy_on_k8s" {
Copy link
Collaborator

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)
Copy link
Collaborator

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
Copy link
Collaborator

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" {
Copy link
Collaborator

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"]
Copy link
Collaborator

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" {
Copy link
Collaborator

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" {
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants