mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Add crio_default_capabilities variables and documentation (#11989)
This commit is contained in:
committed by
GitHub
parent
0632f23a63
commit
358bacf7ea
@@ -79,6 +79,26 @@ The `allowed_annotations` configures `crio.conf` accordingly.
|
|||||||
The `crio_remap_enable` configures the `/etc/subuid` and `/etc/subgid` files to add an entry for the **containers** user.
|
The `crio_remap_enable` configures the `/etc/subuid` and `/etc/subgid` files to add an entry for the **containers** user.
|
||||||
By default, 16M uids and gids are reserved for user namespaces (256 pods * 65536 uids/gids) at the end of the uid/gid space.
|
By default, 16M uids and gids are reserved for user namespaces (256 pods * 65536 uids/gids) at the end of the uid/gid space.
|
||||||
|
|
||||||
|
The `crio_default_capabilities` configure the default containers capabilities for the crio.
|
||||||
|
Defaults capabilties are:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
crio_default_capabilities:
|
||||||
|
- CHOWN
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- FSETID
|
||||||
|
- FOWNER
|
||||||
|
- NET_RAW
|
||||||
|
- SETGID
|
||||||
|
- SETUID
|
||||||
|
- SETPCAP
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
- SYS_CHROOT
|
||||||
|
- KILL
|
||||||
|
```
|
||||||
|
|
||||||
|
You can add MKNOD to the list for a rancher deployment
|
||||||
|
|
||||||
## Optional : NRI
|
## Optional : NRI
|
||||||
|
|
||||||
[Node Resource Interface](https://github.com/containerd/nri) (NRI) is disabled by default for the CRI-O. If you
|
[Node Resource Interface](https://github.com/containerd/nri) (NRI) is disabled by default for the CRI-O. If you
|
||||||
|
|||||||
@@ -99,3 +99,17 @@ crio_man_files:
|
|||||||
|
|
||||||
# If set to true, it will enable the CRIU support in cri-o
|
# If set to true, it will enable the CRIU support in cri-o
|
||||||
crio_criu_support_enabled: false
|
crio_criu_support_enabled: false
|
||||||
|
|
||||||
|
# Configure default_capabilities in crio.conf
|
||||||
|
crio_default_capabilities:
|
||||||
|
- CHOWN
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- FSETID
|
||||||
|
- FOWNER
|
||||||
|
- NET_RAW
|
||||||
|
- SETGID
|
||||||
|
- SETUID
|
||||||
|
- SETPCAP
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
- SYS_CHROOT
|
||||||
|
- KILL
|
||||||
|
|||||||
@@ -155,17 +155,9 @@ cgroup_manager = "{{ crio_cgroup_manager }}"
|
|||||||
# only the capabilities defined in the containers json file by the user/kube
|
# only the capabilities defined in the containers json file by the user/kube
|
||||||
# will be added.
|
# will be added.
|
||||||
default_capabilities = [
|
default_capabilities = [
|
||||||
"CHOWN",
|
{%- for item in crio_default_capabilities %}
|
||||||
"DAC_OVERRIDE",
|
"{{ item }}",
|
||||||
"FSETID",
|
{%- endfor %}
|
||||||
"FOWNER",
|
|
||||||
"NET_RAW",
|
|
||||||
"SETGID",
|
|
||||||
"SETUID",
|
|
||||||
"SETPCAP",
|
|
||||||
"NET_BIND_SERVICE",
|
|
||||||
"SYS_CHROOT",
|
|
||||||
"KILL",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# List of default sysctls. If it is empty or commented out, only the sysctls
|
# List of default sysctls. If it is empty or commented out, only the sysctls
|
||||||
|
|||||||
Reference in New Issue
Block a user