Adding Aditya who has some steps that can help here.
On Tue, Sep 27, 2022 at 9:49 AM Ganeshar, Puvi <puvi.ganeshar(a)directv.com>
wrote:
Hi Dewayne,
Here it is:
https://developers.redhat.com/blog/2019/08/14/best-practices-for-running-...
Puvi
On Sep 27, 2022, at 7:45 AM, Dewayne Branch <bdbranch(a)gmail.com> wrote:
Where is this article located?
Dewayne
On Tue, Sep 27, 2022, 8:17 AM Ganeshar, Puvi <puvi.ganeshar(a)directv.com>
wrote:
> Hello All,
>
> I am following Dan Walsh’s SysAdmin article (
>
https://developers.redhat.com/blog/2019/08/14/best-practices-for-running-...
>
<
https://urldefense.com/v3/__https://developers.redhat.com/blog/2019/08/14...>)
> to speed up our CI builds in Jenkins.
>
> I am trying to do what’s suggested under “*Additional stores*”,
> basically volume mounting the directory where the containerd stores on
> the K8s host into a container under /var/lib/shared.
>
> We are running containerd as the runtime on an EKS cluster.
>
> According to the article, I need to do:
>
> # mkdir /var/lib/containers4
> # podman run -v ./build:/build:z -v* /var/lib/containers/storage*:/var/lib/shared:ro
-v \ */var/lib/containers4*:/var/lib/containers:Z quay.io/buildah/stable
<
https://urldefense.com/v3/__http://quay.io/buildah/stable__;!!BhdT!h9g4s0...
\
> buildah -t image4 bud /build
> # podman run -v* /var/lib/containers/storage*:/var/lib/shared:ro \
> -v >*/var/lib/containers4*:/var/lib/containers:Z quay.io/buildah/stable
<
https://urldefense.com/v3/__http://quay.io/buildah/stable__;!!BhdT!h9g4s0...
buildah push image4 \
registry.company.com/myuser
<
https://urldefense.com/v3/__http://registry.company.com/myuser__;!!BhdT!h...
>
>
> Can someone please tell me the equivalent directory for
> /var/lib/containers/storage? I.e where does containerd store
> the download images on the Kubernetes worker nodes?
> The containerd config looks like this:
> # cat /etc/containerd/config.toml
> version = 2
> root = "/var/lib/containerd"
> state = "/run/containerd"
>
> [grpc]
> address = "/run/containerd/containerd.sock"
>
> [plugins."io.containerd.grpc.v1.cri".containerd]
> default_runtime_name = "runc"
>
> [plugins."io.containerd.grpc.v1.cri"]
> sandbox_image = “XXXXXXXX.amazonaws.com/eks/pause:3.5
>
<
https://urldefense.com/v3/__http://XXXXXXXX.amazonaws.com/eks/pause:3.5__...
> "
>
> [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
> runtime_type = "io.containerd.runc.v2"
>
> [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
> SystemdCgroup = true
>
> [plugins."io.containerd.grpc.v1.cri".cni]
> bin_dir = "/opt/cni/bin"
> conf_dir = "/etc/cni/net.d"
>
>
>
> Thanks in advance.
>
>
> Puvi Ganeshar
>
> _______________________________________________
> Podman mailing list -- podman(a)lists.podman.io
> To unsubscribe send an email to podman-leave(a)lists.podman.io
>
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io