Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

k8s: document how to choose which kernel/rootfs for which pod #294

Closed
grahamwhaley opened this issue Nov 5, 2018 · 5 comments · Fixed by #576
Closed

k8s: document how to choose which kernel/rootfs for which pod #294

grahamwhaley opened this issue Nov 5, 2018 · 5 comments · Fixed by #576

Comments

@grahamwhaley
Copy link
Contributor

Kata has the ability to select a different kernel/rootfs per-pod in k8s, but I can't find the documentation saying how to do that.
I suspect it could live in https://github.com/kata-containers/documentation/blob/master/how-to/how-to-use-k8s-with-cri-containerd-and-kata.md

Let's see if we already have that documented, and if not, add it. If so, maybe we can cross-ref the docs.

@grahamwhaley
Copy link
Contributor Author

/cc @mythi , who was looking for this info...
/cc @sameo and @egernst who wrote and/or have set this up in the past.
I have a feeling the info might be living in a gist somewhere right now.

@grahamwhaley
Copy link
Contributor Author

I think, for ref, the details may be in @sameo asciinema video at https://asciinema.org/a/146888
@sameo - can you confirm, will the details there still be valid you think?

@egernst
Copy link
Member

egernst commented Apr 1, 2019

/cc @eadamsintel -- do you have script from your demo?

@eadamsintel
Copy link
Contributor

I do. It is in Google drive but once you have the kubernetes cluster setup and kata runtime added you need a yaml file annotation pointing to the custom kernel. See below.

apiVersion: v1
kind: Pod
metadata:
  annotations:
    com.github.containers.virtcontainers.KernelPath: "/home/kata/k8s/vmlinuz-4.14.61-7"
  name: nginx-kata-custom-kernel
spec:
  runtimeClassName: kata-runtime
  containers:
  - name: nginx
    image: sameo/nginx-kubecon:1.0
    ports:
    - containerPort: 8080

@mythi
Copy link

mythi commented Apr 1, 2019

Cool, it seems the image path can also be set:

ImagePath = vcAnnotationsPrefix + "ImagePath"

(I was more interested in setting a custom image)

devimc pushed a commit to devimc/kata-documentation that referenced this issue Sep 2, 2019
…est-alpine

rootfs: Don't hardcode alpine version for golang images
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Dec 10, 2019
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Dec 10, 2019
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: kata-containers/tests#2240
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Jan 20, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: github.com/kata-containers/tests#2240
Signed-off-by: Peng Tao <[email protected]>
bergwolf added a commit to bergwolf/kata-documentation that referenced this issue Mar 16, 2020
It explains the details of current supported annotations.

Fixes: kata-containers#486
Fixes: kata-containers#294
Depends-on: github.com/kata-containers/tests#2240
Signed-off-by: Peng Tao <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants