From: "Kevin Hilman" <khilman@baylibre.com>
To: kernelci@groups.io, adityasrivastava301199@gmail.com, kernelci@groups.io
Subject: Re: Contribute to KernelCI in Kubernetes or Cloud
Date: Mon, 06 Jul 2020 11:10:16 -0700 [thread overview]
Message-ID: <7hwo3g4irb.fsf@baylibre.com> (raw)
In-Reply-To: <CAJMT-dGBCdkJnDNRYRRk9aVk=FmJkjGmpXCqsXc73v8hY+yi9w@mail.gmail.com>
Hello,
Aditya Srivastava <adityasrivastava301199@gmail.com> writes:
> Heard the talk on OSS by Kevin Hilman and khouloud touil , I would like to
> help to get KernelCI on K8S or any other help if needed for the same.
Thanks for contacting us. What's your experience with k8s? and how do
you want to help?
As you may have learned in my talk, we do *lots* of kernel builds.
We have Docker images for each arch/toolchain combination[1], and these
are the containers we use in the k8s jobs.
Our pipeline is managed by Jenkins, and you can read a bit about the
Jenkins jobs in the README of the main kernelci-core repo[2].
Where k8s comes in is at the `jenkins/build.jpl` step. When we get to
this phase, we're ready to do a build for a specific combination of:
- git tree
- git branch
- kernel defconfig
- arch
- compiler
The build step then generates a k8s job (from a jinja2 template) based
on these parameters, and sends it off to a pre-configure k8s cluster
using kubectl.
Here is the github PR[3] that has the jinja2 template and a python
script (gen.py) to generate the k8s job yaml. There's also another
script (wait.py) which uses the k8s python API to wait for the job to
complete and then fetch the build logs.
I've been the one working on the k8s tooling, but I'm pretty new to it,
so I'm assuming that I made some newbie mistakes and that there are
probably better ways of doing things.
For now, this is already working pretty well and has allowed us to scale
up our build capacity (thanks to compute donations from gcloud and
azure), but any help in this area by experienced engineers would be very
helpful.
I'm particularily interested in your thoughts on improvements on how to
submit/wait for k8s jobs and then fetch the logs. It's working OK now,
but occaisionaly get problems wher kubectl (or wait.py) gets random
failures, or "connection refused" errors from the k8s cluster. I cannot
reliably reproduce these reliably but they happen every few thousand
builds.
Anyways, that's a bit of background. If you have some time to help out,
please have a look at the current expirments and feel free to ask
questions.
It also might be worth your time to join our weekly call. We meet at
16h UTC every Tuesday via a jitsi video call[4].
Thanks again for you interest and offer to help,
Kevin
[1] https://github.com/kernelci/kernelci-core/tree/master/jenkins/dockerfiles
[2] https://github.com/kernelci/kernelci-core
[3] https://github.com/kernelci/kernelci-core/pull/366/commits/b63da26abc216ad8bc8123d63010a485db2ae3a8
[4] https://meet.kernel.social/kernelci-dev
next prev parent reply other threads:[~2020-07-06 18:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-01 20:22 Contribute to KernelCI in Kubernetes or Cloud Aditya Srivastava
2020-07-06 18:10 ` Kevin Hilman [this message]
2020-07-15 8:39 ` adityasrivastava301199
2020-07-21 17:14 ` Kevin Hilman
[not found] ` <1621E054EEFB3FDC.11249@groups.io>
2020-07-17 9:40 ` Aditya Srivastava
2020-07-20 8:07 ` Guillaume Tucker
2020-07-22 20:55 ` Kevin Hilman
2020-07-23 12:46 ` Aditya Srivastava
2020-07-24 18:48 ` Kevin Hilman
[not found] ` <CAJMT-dGsKh9vObdBxbdTQNoC7_mVx7qgxyX6AN0pXzePepjbFQ@mail.gmail.com>
[not found] ` <7hzh7j2qha.fsf@baylibre.com>
[not found] ` <CAJMT-dEoEerBUcTeZT97ZfWbqDy3f0UhB8xordgG=Ae8wzOEtQ@mail.gmail.com>
[not found] ` <7hlfj03opw.fsf@baylibre.com>
2020-07-31 8:38 ` Aditya Srivastava
2020-07-31 16:48 ` Kevin Hilman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7hwo3g4irb.fsf@baylibre.com \
--to=khilman@baylibre.com \
--cc=adityasrivastava301199@gmail.com \
--cc=kernelci@groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox