-
Notifications
You must be signed in to change notification settings - Fork 25
feat(ipv6): add --disable-ipv6 flag for IPv4-only operation #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ const ( | |
| ) | ||
|
|
||
| // Deploy deploys all the necessary Kubernetes resources for CoreDNS | ||
| func Deploy(adminKubeconfig string) error { | ||
| func Deploy(adminKubeconfig string, disableIPv6 bool) error { | ||
| time.Sleep(types.DefaultComponentSleep) | ||
|
|
||
| ctx, cancel := context.WithTimeout(context.Background(), types.DefaultContextTimeout) | ||
|
|
@@ -33,7 +33,7 @@ func Deploy(adminKubeconfig string) error { | |
| return fmt.Errorf("failed to create kubernetes client: %v", err) | ||
| } | ||
|
|
||
| if err := createConfigMap(ctx, clientset); err != nil { | ||
| if err := createConfigMap(ctx, clientset, disableIPv6); err != nil { | ||
|
Comment on lines
24
to
+36
|
||
| return fmt.Errorf("failed to create CoreDNS ConfigMap: %v", err) | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -8,6 +8,7 @@ func (s *service) configureKubeletArgs(command *cobra.Command) { | |||
| command.SetArgs([]string{ | ||||
| "--config", s.kubeletConfigFile, | ||||
| "--hostname-override", s.nodeName, | ||||
| "--node-ip", s.nodeIP, | ||||
|
||||
| "--node-ip", s.nodeIP, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag help text says kubelet will only register with an explicit IPv4 node address when this flag is set, but the current kubelet args unconditionally set
--node-ip. Either make kubelet’s--node-ipconditional onDisableIPv6, or adjust this description to match the actual behavior.