pkg/nri, docs: enable NRI by default.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
This commit is contained in:
		
							
								
								
									
										19
									
								
								docs/NRI.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								docs/NRI.md
									
									
									
									
									
								
							| @@ -52,20 +52,21 @@ the TODO list. | |||||||
| The main reason for this split of functionality is to allow | The main reason for this split of functionality is to allow | ||||||
|  NRI plugins for other types of sandboxes and for other container clients other than just for CRI containers in the "k8s.io" namespace. |  NRI plugins for other types of sandboxes and for other container clients other than just for CRI containers in the "k8s.io" namespace. | ||||||
|  |  | ||||||
| ## Enabling NRI Support in Containerd | ## Disabling NRI Support in Containerd | ||||||
|  |  | ||||||
| Enabling and disabling NRI support in containerd happens by enabling or | Enabling and disabling NRI support in containerd happens by enabling or | ||||||
| disabling the common containerd NRI plugin. The plugin, and consequently | disabling the common containerd NRI plugin. Starting with containerd 2.0 | ||||||
| NRI functionality, is disabled by default. It can be enabled by editing | The plugin, and consequently NRI functionality, is enabled by default. | ||||||
| the `[plugins."io.containerd.nri.v1.nri"]` section in the containerd | It can be disabled by editing the `[plugins."io.containerd.nri.v1.nri"]` | ||||||
| configuration file, which by default is `/etc/containerd/config.toml`, | section in the containerd configuration file, which by default is | ||||||
| and changing `disable = true` to `disable = false`. Once enabled, the | `/etc/containerd/config.toml`, and changing `disable = false` to | ||||||
| NRI section should look something like this: | `disable = true`. The NRI section to disable NRI functionality should | ||||||
|  | look something like this: | ||||||
|  |  | ||||||
| ```toml | ```toml | ||||||
|   [plugins."io.containerd.nri.v1.nri"] |   [plugins."io.containerd.nri.v1.nri"] | ||||||
|     # Enable NRI support in containerd. |     # Disable NRI support in containerd. | ||||||
|     disable = false |     disable = true | ||||||
|     # Allow connections from externally launched NRI plugins. |     # Allow connections from externally launched NRI plugins. | ||||||
|     disable_connections = false |     disable_connections = false | ||||||
|     # plugin_config_path is the directory to search for plugin-specific configuration. |     # plugin_config_path is the directory to search for plugin-specific configuration. | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								integration/client/testdata/default-1.7.toml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								integration/client/testdata/default-1.7.toml
									
									
									
									
										vendored
									
									
								
							| @@ -196,7 +196,9 @@ version = 2 | |||||||
|     no_prometheus = false |     no_prometheus = false | ||||||
|  |  | ||||||
|   [plugins."io.containerd.nri.v1.nri"] |   [plugins."io.containerd.nri.v1.nri"] | ||||||
|     disable = true |     # Updated in latest | ||||||
|  |     #disable = true | ||||||
|  |     disable = false | ||||||
|     disable_connections = false |     disable_connections = false | ||||||
|     plugin_config_path = "/etc/nri/conf.d" |     plugin_config_path = "/etc/nri/conf.d" | ||||||
|     plugin_path = "/opt/nri/plugins" |     plugin_path = "/opt/nri/plugins" | ||||||
|   | |||||||
| @@ -42,7 +42,7 @@ type Config struct { | |||||||
| // DefaultConfig returns the default configuration. | // DefaultConfig returns the default configuration. | ||||||
| func DefaultConfig() *Config { | func DefaultConfig() *Config { | ||||||
| 	return &Config{ | 	return &Config{ | ||||||
| 		Disable:          true, | 		Disable:          false, | ||||||
| 		SocketPath:       nri.DefaultSocketPath, | 		SocketPath:       nri.DefaultSocketPath, | ||||||
| 		PluginPath:       nri.DefaultPluginPath, | 		PluginPath:       nri.DefaultPluginPath, | ||||||
| 		PluginConfigPath: nri.DefaultPluginConfigPath, | 		PluginConfigPath: nri.DefaultPluginConfigPath, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Krisztian Litkey
					Krisztian Litkey