howto: add sandbox config annotation howto#576
howto: add sandbox config annotation howto#576grahamwhaley merged 1 commit intokata-containers:masterfrom
Conversation
|
/test |
|
Spell check doesn't understand some tech words, what shall I do to fix it? |
grahamwhaley
left a comment
There was a problem hiding this comment.
Looking good! thanks!
I left some nitpicks. For the spelling, some words (like kata) need capitalisation I think (to Kata) - others, you might have to add to the dictionary, or they may be some 'magic quoting' that can effectively mark them as 'ignore'. See https://github.com/kata-containers/tests/tree/master/cmd/check-spelling#adding-a-new-word - and consult the spell master @jodh-intel ;-)
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config_path` | string | kata config file location that overrides the default config paths | | ||
| | `io.katacontainers.pkg.oci.bundle_path` | string | oci bundle path | | ||
| | `io.katacontainers.pkg.oci.container_type`| string | oci container type. Only accpets `pod_container` and `pod_sandbox` | |
| ## Runtime Options | ||
| | Key | Value Type | Comments | | ||
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config.runtime.disable_guest_seccomp`| boolean | determines if seccomp should be applied inside guest | |
| | Key | Value Type | Comments | | ||
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config.runtime.disable_guest_seccomp`| boolean | determines if seccomp should be applied inside guest | | ||
| | `io.katacontainers.config.runtime.sandbox_cgroup_only`| boolean | determines if kata processes are managed only in sandbox cgroup | |
There was a problem hiding this comment.
s/kata/Kata/ throughout?
| | `io.katacontainers.config.runtime.sandbox_cgroup_only`| boolean | determines if kata processes are managed only in sandbox cgroup | | ||
| | `io.katacontainers.config.runtime.experimental` | boolean | determines if experimental features enabled | | ||
| | `io.katacontainers.config.runtime.internetworking_model` | string| determines how the VM should be connected to the container network interface. Valid values are `macvtap`, `tcfilter` and `none` | | ||
| | `io.katacontainers.config.runtime.disable_new_netns` | boolean | determines if create a netns for hypervisor process | |
There was a problem hiding this comment.
reword a little maybe:
determines if a new netns is created for the hypervisor process
| ## Hypervisor Options | ||
| | Key | Value Type | Comments | | ||
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config.hypervisor.kernel` | string | the kernel needed to boot the container VM | |
| | `io.katacontainers.config.hypervisor.guest_hook_path` | string | the path within the VM that will be used for 'drop-in' hooks | | ||
| | `io.katacontainers.config.hypervisor.use_vsock` | boolean | specify use of vsock for agent communication | | ||
| | `io.katacontainers.config.hypervisor.hotplug_vfio_on_root_bus` | boolean | indicate if devices need to be hotplugged on the root bus instead of a bridge| | ||
| | `io.katacontainers.config.hypervisor.entropy_source` | string| the path to a host source of entropy (/dev/random, /dev/urandom or real hardware RNG device) | |
There was a problem hiding this comment.
s?/dev/random?/dev/random?
|
Hi @bergwolf - tal at https://github.com/kata-containers/tests/tree/master/cmd/check-spelling/data/ - all acronymns / abbreviations need to use the "official" spelling (including capitalisation) and yes, s/kata/Kata/ please ;) You can "bypass" the spell-checker by putting a word in backticks, but that should only be used for things like filenames and command names (see https://github.com/kata-containers/documentation/blob/master/Documentation-Requirements.md#files-and-command-names). |
| # Per-Pod Kata Configurations | ||
|
|
||
| Kata Containers gives users freedom to customise at per-pod level, by setting | ||
| a wide range of kata specific annotations in the pod spec. |
| | Key | Value Type | Comments | | ||
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config_path` | string | kata config file location that overrides the default config paths | | ||
| | `io.katacontainers.pkg.oci.bundle_path` | string | oci bundle path | |
| | Key | Value Type | Comments | | ||
| |-------| ----- | ----- | | ||
| | `io.katacontainers.config.hypervisor.kernel` | string | the kernel needed to boot the container VM | | ||
| | `io.katacontainers.config.hypervisor.image` | string | the guest image that will run in the container VM | |
There was a problem hiding this comment.
Can you sort the rows alphabetically by column 1 (the key)?
|
Just a reminder that this PR needs updating based on review feedback. |
|
This is a great document @bergwolf. I know these edits can be painful, but will you get a chance to update the document? I'd love to be able to reference this! |
|
Ping @bergwolf - just a few |
9de435e to
752c67b
Compare
|
@grahamwhaley @jodh-intel Sorry for the delay. I've updated the PR to address all comments including sorting all options alphabetically. All spell checker warnings are fixed. PTAL. |
|
The spell checker is still failing but doesn't show any errors. @jodh-intel Any clue? I can't reproduce it locally. |
|
@bergwolf - yep, working on it kata-containers/tests#2240 |
d163609 to
c855aaa
Compare
|
Thanks @grahamwhaley. |
|
/test |
|
@bergwolf could you please resolve the conflicts ? thanks |
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 <bergwolf@hyper.sh>
|
/test-ubuntu |
grahamwhaley
left a comment
There was a problem hiding this comment.
lgtm
I'm happy to merge this, even if we may need to tweak anything, as having this visible is so much better than having it sat in a PR.
It explains the details of current supported annotations.
Fixes: #486
Fixes: #294
Signed-off-by: Peng Tao bergwolf@hyper.sh