Skip to content

Commit

Permalink
scheduled rebalance updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyvg9 committed Oct 18, 2023
1 parent a8a81d9 commit d1e8ee0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/eks/eks_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module "castai-eks-cluster" {
depends_on = [module.castai-eks-role-iam]
}

resource "castai_rebalancing_schedule" "test" {
resource "castai_rebalancing_schedule" "spots" {
name = "rebalance spots at every 30th minute"
schedule {
cron = "*/30 * * * *"
Expand Down Expand Up @@ -165,8 +165,8 @@ resource "castai_rebalancing_schedule" "test" {
}
}

resource "castai_rebalancing_job" "test" {
resource "castai_rebalancing_job" "spots" {
cluster_id = castai_eks_clusterid.cluster_id.id
rebalancing_schedule_id = castai_rebalancing_schedule.test.id
rebalancing_schedule_id = castai_rebalancing_schedule.spots.id
enabled = true
}
7 changes: 7 additions & 0 deletions examples/eks/eks_cluster_existing/tf.vars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cluster_name = ""
cluster_region = ""
castai_api_token = ""
vpc_id = ""
cluster_security_group_id = ""
node_security_group_id = ""
subnets = ["", ""]

0 comments on commit d1e8ee0

Please sign in to comment.