8000 Automatically apply CNI on multinode clusters by sharifelgamal · Pull Request #7930 · kubernetes/minikube · GitHub
[go: up one dir, main page]

Skip to content

Automatically apply CNI on multinode clusters - #7930

Merged
tstromberg merged 9 commits into
kubernetes:masterfrom
sharifelgamal:cni
Apr 29, 2020
Merged

tstromberg merged 9 commits into
kubernetes:masterfrom
sharifelgamal:cni

Conversation

@sharifelgamal
Copy link
Copy Markdown
Contributor

Fixes #7459

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 28, 2020
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sharifelgamal

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2020
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 28, 2020

// applyKICOverlay applies the CNI plugin needed to make kic work
func (k *Bootstrapper) applyKICOverlay(cfg config.ClusterConfig) error {
fmt.Println("APPLY KIC OVERLAY")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debugging.

Comment thread pkg/minikube/driver/driver.go Outdated
if name != None {
fh.CacheImages = true
// only for kic, till other run-times are available we auto-set containerd.
// only for kic, until other runtimes are available we auto-set containerd.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment actually is no long true, we have other run-time,s we can just delete this comment.

Comment thread pkg/minikube/config/config.go Outdated
return nil
}

// MultiNode returns true if the cluster
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finish comment... :)

Comment thread pkg/minikube/config/config.go Outdated
// MultiNodeCNIConfig add default CNI config needed for multinode clusters and saves off the config
func MultiNodeCNIConfig(cc *ClusterConfig) error {
if cc.KubernetesConfig.ExtraOptions.Get("pod-network-cidr", "kubeadm") == "" {
fmt.Println("SETTING CNI CONFIG")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove deubbing there too.

Comment thread pkg/minikube/config/config.go Resolved
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 28, 2020
@medyagh
medyagh commented Apr 29, 2020
Copy link
Copy Markdown
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Apr 29, 2020
@minikube-pr-bot
Copy link
Copy Markdown

kvm2 Driver
docker Driver

@tstromberg
tstromberg merged commit 7b39b10 into kubernetes:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Figure out automated CNI for multi-node clusters

5 participants

0