Skip to content

Commit

Permalink
Start ocean again
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed May 31, 2024
1 parent 78af855 commit 7f57cef
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions modules/k8s-node-autoscaler/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,30 @@ resource "aws_eks_access_entry" "example" {
tags = var.tags
}

# module "ocean-controller" {
# source = "spotinst/ocean-controller/spotinst"
# version = "0.54.0"
module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.54.0"

# # Credentials.
# spotinst_token = data.aws_secretsmanager_secret_version.secret_credentials.secret_string
# spotinst_account = var.spotinst_account
# Credentials.
spotinst_token = data.aws_secretsmanager_secret_version.secret_credentials.secret_string
spotinst_account = var.spotinst_account

# # Configuration.
# cluster_identifier = var.cluster_name
# }
# Configuration.
cluster_identifier = var.cluster_name
}

# module "ocean-aws-k8s" {
# source = "spotinst/ocean-aws-k8s/spotinst"
# version = "1.2.0"
# # worker_instance_profile_arn = "arn:aws:iam::766808016710:role/airflow-node-group-eks-node-group-20240517054613935800000001"
module "ocean-aws-k8s" {
source = "spotinst/ocean-aws-k8s/spotinst"
version = "1.2.0"
# worker_instance_profile_arn = "arn:aws:iam::766808016710:role/airflow-node-group-eks-node-group-20240517054613935800000001"

# # Configuration
# cluster_name = var.cluster_name
# region = var.region
# subnet_ids = data.aws_subnets.private.ids
# worker_instance_profile_arn = aws_iam_instance_profile.profile.arn
# security_groups = [data.aws_security_group.eks_node_security_group.id]
# is_aggressive_scale_down_enabled = true
# max_scale_down_percentage = 33
# tags = var.tags
# }
# Configuration
cluster_name = var.cluster_name
region = var.region
subnet_ids = data.aws_subnets.private.ids
worker_instance_profile_arn = aws_iam_instance_profile.profile.arn
security_groups = [data.aws_security_group.eks_node_security_group.id]
is_aggressive_scale_down_enabled = true
max_scale_down_percentage = 33
tags = var.tags
}

0 comments on commit 7f57cef

Please sign in to comment.