Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvesh-cast committed Oct 15, 2024
1 parent 1009f88 commit 4c8ce7b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ terraform {
required_providers {
castai = {
source = "castai/castai"
version = "2.0.0" # can be omitted for the latest version
}
}
required_version = ">= 0.13"
Expand Down
6 changes: 3 additions & 3 deletions examples/eks/eks_cluster_gitops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ CASTAI_CLUSTER_ID=""
CAST_CONFIG_SOURCE="castai-cluster-controller"
#### Mandatory Component: Castai-agent
helm upgrade -i castai-agent castai-helm/castai-agent -n castai-agent \
helm upgrade -i castai-agent castai-helm/castai-agent -n castai-agent --create-namespace \
--set apiKey=$CASTAI_API_KEY \
--set provider=eks \
--create-namespace
--set createNamespace=false
#### Mandatory Component: castai-cluster-controller
helm upgrade -i cluster-controller castai-helm/castai-cluster-controller -n castai-agent \
Expand All @@ -111,7 +111,7 @@ helm upgrade -i castai-spot-handler castai-helm/castai-spot-handler -n castai-ag
--set castai.provider=aws
#### castai-evictor
helm upgrade -i castai-evictor castai-helm/castai-evictor -n castai-agent --set replicaCount=0
helm upgrade -i castai-evictor castai-helm/castai-evictor -n castai-agent --set replicaCount=1
#### castai-pod-pinner
helm upgrade -i castai-pod-pinner castai-helm/castai-pod-pinner -n castai-agent \
Expand Down
19 changes: 10 additions & 9 deletions examples/gke/gke_cluster_existing/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,23 @@ module "castai-gke-cluster" {
}
node_templates = {
default_by_castai = {
name = "default-by-castai"
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false
name = "default-by-castai"
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_default = true
is_enabled = true
should_taint = false
custom_instances_enabled = true

constraints = {
on_demand = true
}
}

example_spot_template = {
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true
configuration_id = module.castai-gke-cluster.castai_node_configurations["default"]
is_enabled = true
should_taint = true
custom_instances_enabled = true

custom_labels = {
custom-label-key-1 = "custom-label-value-1"
Expand Down Expand Up @@ -92,7 +94,6 @@ module "castai-gke-cluster" {
instance_families = ["c5"]
spot = true
}
custom_instances_enabled = true
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions examples/gke/gke_cluster_gitops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ CASTAI_CLUSTER_ID=""
CAST_CONFIG_SOURCE="castai-cluster-controller"
#### Mandatory Component: Castai-agent
helm upgrade -i castai-agent castai-helm/castai-agent -n castai-agent \
helm upgrade -i castai-agent castai-helm/castai-agent -n castai-agent --create-namespace \
--set apiKey=$CASTAI_API_KEY \
--set provider=gke \
--create-namespace
--set createNamespace=false
#### Mandatory Component: castai-cluster-controller
helm upgrade -i cluster-controller castai-helm/castai-cluster-controller -n castai-agent \
Expand All @@ -65,7 +65,7 @@ helm upgrade -i castai-spot-handler castai-helm/castai-spot-handler -n castai-ag
--set castai.provider=gcp
#### castai-evictor
helm upgrade -i castai-evictor castai-helm/castai-evictor -n castai-agent --set replicaCount=0
helm upgrade -i castai-evictor castai-helm/castai-evictor -n castai-agent --set replicaCount=1
#### castai-pod-pinner
helm upgrade -i castai-pod-pinner castai-helm/castai-pod-pinner -n castai-agent \
Expand Down
2 changes: 1 addition & 1 deletion examples/gke/gke_cluster_gitops/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "castai_node_template" "example_spot_template" {

custom_taints {
key = "dedicated"
value = "backend"
value = "spot"
effect = "NoSchedule"
}

Expand Down

0 comments on commit 4c8ce7b

Please sign in to comment.