From: "Robert Berger" <robert.berger.yocto.user@gmail.com>
To: Ramon Fried <rfried.dev@gmail.com>,
meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization] Kubernetes & Docker on Xilinx Versal Yocto
Date: Fri, 13 Aug 2021 11:28:27 +0300 [thread overview]
Message-ID: <5edc280c-04df-2f8d-e2d9-8837bb1008fc@gmail.com> (raw)
In-Reply-To: <CAGi-RUKss9DvoFr3g3pagbLcAnUCtqWEQXiNaK4PstN+T+hLbw@mail.gmail.com>
Hi,
My comments are inline
On 10/08/2021 18:06, Ramon Fried wrote:
> Hi all,
> I'm working on the bring-up of Kubernetes worker node on Xilinx
> Versal. (ARM A72)
> The storage media (NOR flash) is too small, and I'm running all the
> filesystems as tmpfs, which I load at boot time.
>
> I'm experiencing a lot of issues bringing up Docker and Kubernetes
> together this way, it seems that running these from tmpfs is not that
> trivial.
I am not sure you can run an overlayfs over a tmpfs - never tried that.
> The overlayfs causes real weird issues where suddenly the proc fs is
> unmounted, symbolic links that stop working, etc.
>
> Did anyone succeed running Kubernetes with Docker using the overlayfs2 plugin ?
> I saw on the Docker manual, that overlayfs2 only supports ext4, I'm
> wondering if I'm on the right track.
I typically use an SD card (big enough) and dedicate a btrfs partition
for containers and/or kubernetes.
e.g. /dev/mmcblk0p3 on /var/lib/rancher type btrfs
(rw,noatime,ssd,space_cache,subvolid=5,subvol=/)
This seems to work fine and as a nice side effect I can use btrfs
subvolumes for snapshots.
kubernetes writes to a subvolume /var/lib/rancher/k3s and I can do
snapshots e.g. to /var/lib/rancher/snapshot/k3s/xxx
root@k3s-node-1:/var/lib/rancher# btrfs subvolume list /var/lib/rancher
ID 257 gen 16 top level 5 path k3s
ID 258 gen 22 top level 5 path snapshot
ID 260 gen 21 top level 258 path snapshot/k3s/2021-08-10-11:25:17
ID 261 gen 21 top level 258 path snapshot/k3s/2021-08-10-11:28:00
>
> Would love to share notes.
> Thanks,
> Ramon.
Regards,
Robert
>
>
>
>
>
next prev parent reply other threads:[~2021-08-13 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 15:06 Kubernetes & Docker on Xilinx Versal Yocto Ramon Fried
2021-08-13 8:28 ` Robert Berger [this message]
2021-08-13 22:25 ` [meta-virtualization] " Ramon Fried
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=5edc280c-04df-2f8d-e2d9-8837bb1008fc@gmail.com \
--to=robert.berger.yocto.user@gmail.com \
--cc=meta-virtualization@lists.yoctoproject.org \
--cc=rfried.dev@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.