Skip to content

Commit

Permalink
increase iptables sync period
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jul 7, 2020
1 parent b6f979e commit 209cb3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ mode: "{{ .KubeProxyMode }}"
{{ range $key := .SortedFeatureGateKeys }}
"{{ $key }}": {{$.FeatureGates $key }}
{{end}}{{end}}
iptables:
minSyncPeriod: 5s
`

// ConfigTemplateBetaV1 is the kubadm config template for API version v1beta1
Expand Down Expand Up @@ -410,6 +412,8 @@ mode: "{{ .KubeProxyMode }}"
{{ range $key := .SortedFeatureGateKeys }}
"{{ $key }}": {{ index $.FeatureGates $key }}
{{end}}{{end}}
iptables:
minSyncPeriod: 5s
`

// ConfigTemplateBetaV2 is the kubadm config template for API version v1beta2
Expand Down Expand Up @@ -525,6 +529,8 @@ mode: "{{ .KubeProxyMode }}"
{{ range $key := .SortedFeatureGateKeys }}
"{{ $key }}": {{ index $.FeatureGates $key }}
{{end}}{{end}}
iptables:
minSyncPeriod: 5s
`

// Config returns a kubeadm config generated from config data, in particular
Expand Down

0 comments on commit 209cb3c

Please sign in to comment.