Skip to content

Commit 6d605fc

Browse files
committed
fix: disable NRI plugin in a different way
This way it's easy to re-enable NRI plugins with a simple change. See #10068 I tested that it works e2e with NRI plugins repository. Signed-off-by: Andrey Smirnov <[email protected]>
1 parent 499695e commit 6d605fc

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

hack/cri-containerd.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version = 3
22

33
disabled_plugins = [
4-
"io.containerd.nri.v1.nri",
54
"io.containerd.internal.v1.tracing",
65
"io.containerd.snapshotter.v1.blockfile",
76
"io.containerd.tracing.processor.v1.otlp",

hack/cri-plugin.part

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ version = 3
55

66
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runc]
77
base_runtime_spec = "/etc/cri/conf.d/base-spec.json"
8+
9+
[plugins."io.containerd.nri.v1.nri"]
10+
disable = true

website/content/v1.10/talos-guides/configuration/containerd.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,21 @@ NODE NAMESPACE ID
6363
172.20.0.5 k8s.io kube-system/kube-proxy-xp7jq registry.k8s.io/pause:3.8 1780 SANDBOX_READY
6464
172.20.0.5 k8s.io └─ kube-system/kube-proxy-xp7jq:kube-proxy:84fc77c59e17 registry.k8s.io/kube-proxy:v1.26.0-alpha.3 1843 CONTAINER_RUNNING
6565
```
66+
67+
### Enabling NRI Plugins
68+
69+
By default, Talos disables [NRI](https://github.com/containerd/containerd/blob/main/docs/NRI.md) plugins in `containerd`, as they might have security implications.
70+
However, if you need to enable them, you can do so by adding the following configuration:
71+
72+
```yaml
73+
machine:
74+
files:
75+
- content: |
76+
[plugins]
77+
[plugins."io.containerd.nri.v1.nri"]
78+
disable = false
79+
path: /etc/cri/conf.d/20-customization.part
80+
op: create
81+
```
82+
83+
After applying the configuration, the NRI plugins can be deployed, for example plugins from [this repository](https://containers.github.io/nri-plugins/stable/docs/index.html).

0 commit comments

Comments
 (0)