RHOCP4: Collecting the active CRI-O config.
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
Issue
- What is the recommended way to collect active CRI-O configuration in Red Hat OpenShift Container Platform?
Resolution
Description
The `CRI-O` configuration is built by merging a set of files (/etc/crio/crio.conf, files in /etc/crio/crio.conf.d/*) as well as from CLI and environment variables. Sometimes, it is useful to see the config that `CRI-O` is actively using.
Usage
The binary `crio-status` is capable of asking a currently running `CRI-O` instance over HTTP for a config:
$ oc debug node/«node»
$ chroot /host
$ crio-status config
This will print the config of the running CRI-O instance to stdout.
It is also possible to gather ContainerRuntimeConfig to check modifications from default configuration:
$ oc get ctrcfg
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.