Skip to content
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

feat: Add pod-pinner to CAST AI onboarding #253

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}

andrejatcastai marked this conversation as resolved.
Show resolved Hide resolved
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
Loading