Skip to content

Commit

Permalink
feat: Add pod-pinner to CAST AI onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Kislovskij committed Dec 7, 2023
1 parent 6d229ae commit 0ff89f8
Show file tree
Hide file tree
Showing 25 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/aks/aks_cluster/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "castai-aks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_arm_template/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "castai-aks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_arm_template/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "castai-aks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_autoscaler_policies/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_azure_cni/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "castai-aks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_azure_cni/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ variable "castai_api_url" {
default = "https://api.cast.ai"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "castai-aks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_existing/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_assumerole/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module "castai-eks-cluster" {
source = "castai/eks-cluster/castai"
api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
Expand Down
5 changes: 5 additions & 0 deletions examples/eks/eks_cluster_assumerole/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ module "castai-eks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
Expand Down
5 changes: 5 additions & 0 deletions examples/eks/eks_cluster_autoscaler_policies/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_custom_iam/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module "castai-eks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
Expand Down
5 changes: 5 additions & 0 deletions examples/eks/eks_cluster_custom_iam/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module "castai-eks-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
Expand Down
1 change: 1 addition & 0 deletions examples/eks/eks_cluster_existing/tf.vars.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cluster_name = ""
cluster_region = ""
castai_api_token = ""
grpc_url = ""
vpc_id = ""
cluster_security_group_id = ""
node_security_group_id = ""
Expand Down
5 changes: 5 additions & 0 deletions examples/eks/eks_cluster_existing/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section"
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/gke/gke_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "castai-gke-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

project_id = var.project_id
Expand Down
5 changes: 5 additions & 0 deletions examples/gke/gke_cluster_autoscaler_policies/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section."
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down
1 change: 1 addition & 0 deletions examples/gke/gke_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module "castai-gke-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true

project_id = var.project_id
Expand Down
5 changes: 5 additions & 0 deletions examples/gke/gke_cluster_existing/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section."
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

# Variables required for connecting EKS cluster to CAST AI

variable "delete_nodes_on_disconnect" {
Expand Down
1 change: 1 addition & 0 deletions examples/gke/gke_cluster_zonal_autoscaler/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "castai-gke-cluster" {

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
grpc_url = var.castai_grpc_url
wait_for_cluster_ready = true
project_id = var.project_id
gke_cluster_name = var.cluster_name
Expand Down
5 changes: 5 additions & 0 deletions examples/gke/gke_cluster_zonal_autoscaler/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ variable "castai_api_token" {
description = "CAST AI API token created in console.cast.ai API Access keys section."
}

variable "castai_grpc_url" {
type = string
description = "CAST AI gRPC URL"
}

variable "delete_nodes_on_disconnect" {
type = bool
description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false."
Expand Down

0 comments on commit 0ff89f8

Please sign in to comment.