Skip to content

Commit

Permalink
fix: Removing kubelet flag --non-masquerade-cidr in v1.24+ clustesr (A…
Browse files Browse the repository at this point in the history
…zure#4829)

Signed-off-by: Mark Rossetti <[email protected]>
  • Loading branch information
marosset authored Feb 10, 2022
1 parent 3449ebc commit 68ee4bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/clusterdefinitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Below is a list of kubelet options that AKS Engine will configure by default:
| "--node-status-update-frequency" | "10s" |
| "--image-gc-high-threshold" | "85" |
| "--image-gc-low-threshold" | "80" |
| "--non-masquerade-cidr" | "0.0.0.0/0" (unless ip-masq-agent is disabled, in which case this is set to the value of `kubernetesConfig.ClusterSubnet` ) |
| "--non-masquerade-cidr" | "0.0.0.0/0" (unless ip-masq-agent is disabled, in which case this is set to the value of `kubernetesConfig.ClusterSubnet` ) - **Removed in v1.24** |
| "--azure-container-registry-config" | "/etc/kubernetes/azure.json" |
| "--pod-max-pids" | "-1" (need to activate the feature in --feature-gates=SupportPodPidsLimit=true) |
| "--image-pull-progress-deadline" | "30m" |
Expand Down
1 change: 1 addition & 0 deletions pkg/api/defaults-kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ func removeKubeletFlags(k map[string]string, v string) {
"--image-pull-progress-deadline",
"--network-plugin",
"--network-plugin-mtu",
"--non-masquerade-cidr",
} {
delete(k, key)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/api/defaults-kubelet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@ func TestRemoveKubeletFlags(t *testing.T) {
"--network-plugin": "cni",
"--network-plugin-mtu": "2000",
"--pod-max-pids": "100",
"--non-masquerade-cidr": "0.0.0.0/0",
},
expected: map[string]string{
"--pod-max-pids": "100",
Expand Down

0 comments on commit 68ee4bc

Please sign in to comment.