Skip to content

Commit

Permalink
Improve cluster add-ons documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-cap authored and hyder committed Feb 3, 2025
1 parent d2ab5bf commit 709a566
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/src/guide/cluster_addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This module provides the option to remove [Essential addons](https://docs.oracle

Cluster add-on removal (using the `cluster_addons_to_remove` variable) requires the creation of the operator host.

If the operator host is not provisioned, it is possible to customize the essential add-ons configuration and prevent the pods from being scheduled. For example, using this approach you can install a custom CNI & KubeProxy replacement.

**Note**: For the cluster autoscaler you should choose **only one** of the options:
- the stand-alone cluster-autoscaler deployment, using the [extension module](./extensions_cluster_autoscaler.md)
- the cluster-autoscaler add-on
Expand Down
22 changes: 22 additions & 0 deletions examples/cluster-addons/vars-cluster-addons.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ cluster_addons = {
}
]
}
# Prevent Flannel pods from being scheduled using a non-existing label as nodeSelector
"Flannel" = {
remove_addon_resources_on_delete = true
override_existing = true # Override the existing configuration with this one, if Flannel addon in already enabled
configurations = [
{
key = "nodeSelectors"
value = "{\"addon\":\"no-schedule\"}"
}
],
},
# Prevent Kube-Proxy pods from being scheduled using a non-existing label as nodeSelector
"KubeProxy" = {
remove_addon_resources_on_delete = true
override_existing = true # Override the existing configuration with this one, if KubeProxy addon in already enabled
configurations = [
{
key = "nodeSelectors"
value = "{\"addon\":\"no-schedule\"}"
}
],
}
}

cluster_addons_to_remove = {
Expand Down
2 changes: 1 addition & 1 deletion modules/cluster-addons/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
oci = {
source = "oracle/oci"
version = ">= 4.119.0"
version = ">= 6.17.0"
}
}
}

0 comments on commit 709a566

Please sign in to comment.