Skip to content
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

[baseimage]: Install Kubernetes packages if enabled in image #4374

Merged
merged 11 commits into from
Apr 13, 2020

Conversation

renukamanavalan
Copy link
Contributor

@renukamanavalan renukamanavalan commented Apr 5, 2020

- What I did
Goal: To be able to join a kubernetes cluster w/o requiring any more packages/images.

  1. Pre-install kubelet, kubeadm & kubectl
  2. Download images required for a worker node.
  3. Wrapper code to simplify reset & join
  4. pod hook scripts for start/stop/readiness
  5. The scripts help create a single way to check for a container presence/readiness.
  6. Create kubelet service
  7. Controlled by build time parameter, which is by default "NO"

@lguohan
Copy link
Collaborator

lguohan commented Apr 5, 2020

can you provide description of this pr, what are you trying to achieve in this pr?

build_debian.sh Outdated Show resolved Hide resolved
build_debian.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments

rules/config Outdated Show resolved Hide resolved
Make a fix, as kubeadm no demands a higher version of kubelet & kubectl.
As kubeadm auto install kubectl & kubelet, removing explicit install is an easier/robust fix.
1) Dropped helper & pod scripts
2) Made install verbose
@renukamanavalan renukamanavalan changed the title Adopt k8s Install Kubernetes packages if enabled in image Apr 10, 2020
@lguohan lguohan changed the title Install Kubernetes packages if enabled in image [baseimage]: Install Kubernetes packages if enabled in image Apr 10, 2020
@renukamanavalan
Copy link
Contributor Author

retest vs please.

@renukamanavalan
Copy link
Contributor Author

retest vsimage please

1 similar comment
@lguohan
Copy link
Collaborator

lguohan commented Apr 12, 2020

retest vsimage please

@abdosi
Copy link
Contributor

abdosi commented Apr 15, 2020

@renukamanavalan There is conflict in cherry-pick. Please create PR for 201911

renukamanavalan added a commit to renukamanavalan/sonic-buildimage that referenced this pull request Apr 16, 2020
…et#4374)

* Install kubernetes worker node packages, if enabled.
@renukamanavalan
Copy link
Contributor Author

Created PR #4432 for 201911 branch.

lguohan pushed a commit that referenced this pull request Apr 17, 2020
…4432)

Install kubeadm, which transparently installs kubelet & kubectl
As well download required Kubernetes images required to run as kubernetes node.
The kubelet service is intentionally kept in disabled state, as it would otherwise
continuously restart wasting resources, until join to master.
@abdosi
Copy link
Contributor

abdosi commented Apr 19, 2020

#4432 is merged.

tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 24, 2020
…et#4374) (sonic-net#4432)

Install kubeadm, which transparently installs kubelet & kubectl
As well download required Kubernetes images required to run as kubernetes node.
The kubelet service is intentionally kept in disabled state, as it would otherwise
continuously restart wasting resources, until join to master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants