Skip to content

Commit

Permalink
AB: update readme + releases notes
Browse files Browse the repository at this point in the history
  • Loading branch information
octopus20 authored and Binsabbar committed Jan 16, 2023
1 parent 276396f commit 626542a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions modules/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ You have the options to use AMD flex shaeps. Just set `flex_shape_config` key in

Note that, Flex Shape works only with AMD shape `VM.Standard.E3.Flex` and `VM.Standard.E4.Flex`, and Intel `VM.Standard3.Flex`.

## Node sizing and Auto-scale
When you need to create a node pool for autoscale, `node_size` must be ignored by Terraform state. Hence, you need to create a pool with initial size of `0`. This will automatically ignore size changes in the pool by Terraform.

## Example
Creating a cluster with 2 node pools
```h
Expand Down Expand Up @@ -65,6 +68,25 @@ module "kubernetes" {
"my-label" : "k8s-label"
}
}
"node-pool-autoscale" = {
compartment_id = "ocixxxxxx.xxxxxx.xxxxx"
ssh_public_key = "ssh-rsa xxxxxxxxxx"
availability_domain = "ocixxxxxx.xxxxxx.xxxxx"
subnet_id = "ocixxxxxx.xxxxxx.xxxxx"
shape = "VM-XXXXXx"
node_metadata = {}
volume_size_in_gbs = 50
size = 0 # this will force terraform to ignore changes to the pool size when autoscale kicks in
k8s_version = "v1.18.10"
image_id = "ocixxxxxx.xxxxxx.xxxxx"
flex_shape_config = {
ocpus = 4
memory_in_gbs = 64
}
labels = {
"my-label" : "k8s-label"
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion releases.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# v2.3.2:
## **New**
* `Kubernetes`:
* Add ignore_changes feature to `size` param in node pool to prevent terraform from reverting the kubernetes cluster autoscaler changes.
* Ability to create autoscaling node pool with node `size=0` and the size param is ignored by Terraform state.
## Fix
None

Expand Down

0 comments on commit 626542a

Please sign in to comment.