Skip to content

Commit 709a566

Browse files
robo-caphyder
authored andcommitted
Improve cluster add-ons documentation
1 parent d2ab5bf commit 709a566

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

docs/src/guide/cluster_addons.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This module provides the option to remove [Essential addons](https://docs.oracle
66

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

9+
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.
10+
911
**Note**: For the cluster autoscaler you should choose **only one** of the options:
1012
- the stand-alone cluster-autoscaler deployment, using the [extension module](./extensions_cluster_autoscaler.md)
1113
- the cluster-autoscaler add-on

examples/cluster-addons/vars-cluster-addons.auto.tfvars

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ cluster_addons = {
1313
}
1414
]
1515
}
16+
# Prevent Flannel pods from being scheduled using a non-existing label as nodeSelector
17+
"Flannel" = {
18+
remove_addon_resources_on_delete = true
19+
override_existing = true # Override the existing configuration with this one, if Flannel addon in already enabled
20+
configurations = [
21+
{
22+
key = "nodeSelectors"
23+
value = "{\"addon\":\"no-schedule\"}"
24+
}
25+
],
26+
},
27+
# Prevent Kube-Proxy pods from being scheduled using a non-existing label as nodeSelector
28+
"KubeProxy" = {
29+
remove_addon_resources_on_delete = true
30+
override_existing = true # Override the existing configuration with this one, if KubeProxy addon in already enabled
31+
configurations = [
32+
{
33+
key = "nodeSelectors"
34+
value = "{\"addon\":\"no-schedule\"}"
35+
}
36+
],
37+
}
1638
}
1739

1840
cluster_addons_to_remove = {

modules/cluster-addons/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ terraform {
77
required_providers {
88
oci = {
99
source = "oracle/oci"
10-
version = ">= 4.119.0"
10+
version = ">= 6.17.0"
1111
}
1212
}
1313
}

0 commit comments

Comments
 (0)