Skip to content

Commit 68cc5b0

Browse files
committed
fixup! feat: cluster per EL onboarding
1 parent a9b2789 commit 68cc5b0

File tree

12 files changed

+46
-14
lines changed

12 files changed

+46
-14
lines changed

examples/onboarding-with-existing-aks-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module "castai_omni_cluster" {
88

99
k8s_provider = "aks"
1010
api_url = var.castai_api_url
11+
kvisor_grpc_url = var.kvisor_grpc_url
1112
api_token = var.castai_api_token
1213
organization_id = var.organization_id
1314
cluster_id = var.cluster_id

examples/onboarding-with-existing-aks-cluster/tf.vars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ aks_resource_group = "<place-holder>"
44
gke_project_id = "<place-holder>"
55

66
castai_api_url = "https://api.cast.ai"
7+
kvisor_grpc_url = "kvisor.prod-master.cast.ai:443"
78
castai_api_token = "<place-holder>"
89
cluster_id = "<place-holder>"
910
organization_id = "<place-holder>"

examples/onboarding-with-existing-aks-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "castai_api_url" {
2424
default = "https://api.cast.ai"
2525
}
2626

27+
variable "kvisor_grpc_url" {
28+
description = "Kvisor gRPC URL"
29+
type = string
30+
default = "kvisor.prod-master.cast.ai:443"
31+
}
32+
2733
variable "castai_api_token" {
2834
description = "Cast AI API Token"
2935
type = string

examples/onboarding-with-existing-eks-cluster/main.tf

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module "castai_omni_cluster" {
1313

1414
k8s_provider = "eks"
1515
api_url = var.castai_api_url
16+
kvisor_grpc_url = var.kvisor_grpc_url
1617
api_token = var.castai_api_token
1718
organization_id = var.organization_id
1819
cluster_id = var.cluster_id
@@ -25,20 +26,20 @@ module "castai_omni_cluster" {
2526
skip_helm = var.skip_helm
2627
}
2728

28-
module "castai_omni_edge_location_aws" {
29-
source = "castai/omni-edge-location-aws/castai"
30-
version = "~> 1.0"
29+
# module "castai_omni_edge_location_aws" {
30+
# source = "castai/omni-edge-location-aws/castai"
31+
# version = "~> 1.0"
3132

32-
providers = {
33-
aws = aws.eu_west_1
34-
}
33+
# providers = {
34+
# aws = aws.eu_west_1
35+
# }
3536

36-
cluster_id = module.castai_omni_cluster.cluster_id
37-
organization_id = module.castai_omni_cluster.organization_id
38-
region = "eu-west-1"
39-
zones = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
37+
# cluster_id = module.castai_omni_cluster.cluster_id
38+
# organization_id = module.castai_omni_cluster.organization_id
39+
# region = "eu-west-1"
40+
# zones = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
4041

41-
tags = {
42-
ManagedBy = "terraform"
43-
}
44-
}
42+
# tags = {
43+
# ManagedBy = "terraform"
44+
# }
45+
# }

examples/onboarding-with-existing-eks-cluster/tf.vars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ eks_cluster_region = "<place-holder>"
22
eks_cluster_name = "<place-holder>"
33

44
castai_api_url = "https://api.cast.ai"
5+
kvisor_grpc_url = "kvisor.prod-master.cast.ai:443"
56
castai_api_token = "<place-holder>"
67
organization_id = "<place-holder>"
78
cluster_id = "<place-holder>"

examples/onboarding-with-existing-eks-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ variable "castai_api_url" {
1414
default = "https://api.cast.ai"
1515
}
1616

17+
variable "kvisor_grpc_url" {
18+
description = "Kvisor gRPC URL"
19+
type = string
20+
default = "kvisor.prod-master.cast.ai:443"
21+
}
22+
1723
variable "castai_api_token" {
1824
description = "Cast AI API Token"
1925
type = string

examples/onboarding-with-existing-gke-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module "castai_omni_cluster" {
2828

2929
k8s_provider = "gke"
3030
api_url = var.castai_api_url
31+
kvisor_grpc_url = var.kvisor_grpc_url
3132
api_token = var.castai_api_token
3233
organization_id = var.organization_id
3334
cluster_id = var.cluster_id

examples/onboarding-with-existing-gke-cluster/tf.vars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ gke_cluster_location = "<place-holder>"
33
gke_cluster_name = "<place-holder>"
44

55
castai_api_url = "https://api.cast.ai"
6+
kvisor_grpc_url = "kvisor.prod-master.cast.ai:443"
67
castai_api_token = "<place-holder>"
78
cluster_id = "<place-holder>"
89
organization_id = "<place-holder>"

examples/onboarding-with-existing-gke-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ variable "castai_api_url" {
1919
default = "https://api.cast.ai"
2020
}
2121

22+
variable "kvisor_grpc_url" {
23+
description = "Kvisor gRPC URL"
24+
type = string
25+
default = "kvisor.prod-master.cast.ai:443"
26+
}
27+
2228
variable "castai_api_token" {
2329
description = "Cast AI API Token"
2430
type = string

examples/onboarding-with-new-eks-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module "castai_omni_cluster" {
7171

7272
k8s_provider = "eks"
7373
api_url = var.castai_api_url
74+
kvisor_grpc_url = var.kvisor_grpc_url
7475
api_token = var.castai_api_token
7576
organization_id = var.organization_id
7677
cluster_id = castai_eks_clusterid.cluster_id.id

0 commit comments

Comments
 (0)