-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update and fix the resource policy documentation
- Updated the old documentation. - Replaced "NRI Plugins Collection" by "NRI Plugins" as that is the proper name. Signed-off-by: Jukka Rissanen <[email protected]>
- Loading branch information
Showing
14 changed files
with
69 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# The NRI Plugin Collection Project Community Code of Conduct | ||
# The NRI Plugins Project Community Code of Conduct | ||
|
||
The NRI Plugin Collection Project follows the [Containers Community Code of Conduct](https://github.com/containers/common/blob/main/CODE-OF-CONDUCT.md). | ||
The NRI Plugins Project follows the [Containers Community Code of Conduct](https://github.com/containers/common/blob/main/CODE-OF-CONDUCT.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Security and Disclosure Information Policy for the NRI Plugin Collection Project | ||
# Security and Disclosure Information Policy for the NRI Plugins Project | ||
|
||
* [Reporting a Vulnerability](#Reporting-a-Vulnerability) | ||
* [Security Announcements](#Security-Announcements) | ||
* [Security Vulnerability Response](#Security-Vulnerability-Response) | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you think you've identified a security issue in a NRI Plugin Collection project, | ||
If you think you've identified a security issue in a NRI Plugins project, | ||
please DO NOT report the issue publicly via the Github issue tracker, | ||
mailing list, or IRC. Instead, send an email with as many details as | ||
possible to [[email protected]](mailto:[email protected]?subject=Security%20Vunerablity%20Report) or [[email protected]](mailto:[email protected]?subject=Security%20Vunerablity%20Report). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Contributing | ||
|
||
Please use the GitHub\* infrastructure for contributing to | ||
NRI Plugin Collection. | ||
Please use the GitHub\* infrastructure for contributing to NRI Plugins. | ||
Use [pull requests](https://github.com/containers/nri-plugins/pulls) | ||
to contribute code, bug fixes, or if you want to discuss your ideas in terms of | ||
code. Open [issues](https://github.com/containers/nri-plugins/issues) to | ||
report bugs, request new features, or if you want to discuss any other topics | ||
related to NRI plugins. | ||
|
||
For the actual NRI (Node Resource Interface) API, please see https://github.com/containerd/nri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,30 @@ | ||
# Installation | ||
|
||
## Installing from packages | ||
## Installing from DaemonSet deployment file | ||
|
||
You can install CRI Resource Manager from `deb` or `rpm` packages | ||
for supported distros. | ||
You can install NRI Resource Policy from DaemonSet deployment file. | ||
|
||
- [download](https://github.com/intel/cri-resource-manager/releases/latest) | ||
packages | ||
- install them: | ||
- for rpm packages: `sudo rpm -Uvh <packages>` | ||
- for deb packages: `sudo dpkg -i <packages>` | ||
TBD | ||
|
||
## Installing from sources | ||
|
||
Although not recommended, you can install CRI Resource Manager from sources: | ||
Although not recommended, you can install NRI Resource Policy from sources: | ||
|
||
- get the sources: `git clone https://github.com/intel/cri-resource-manager` | ||
- build and install: `cd cri-resource-manager; make build && sudo make install` | ||
- get the sources: `git clone https://github.com/containers/nri-plugins` | ||
- build and install: `make && make images` | ||
|
||
You will need at least `git`, {{ '`golang '+ '{}'.format(golang_version) + '`' }} or newer, | ||
`GNU make`, `bash`, `find`, `sed`, `head`, `date`, and `install` to be able to build and install | ||
from sources. | ||
|
||
## Building packages for the distro of your host | ||
After the images are created, you can copy the tar images from `build/images` to | ||
the target device and deploy the relevant DaemonSet deployment file found also | ||
in images directory. | ||
|
||
You can build packages for the `$distro` of your host by executing the | ||
following command: | ||
For example, you can deploy topology-aware resource policy like this: | ||
|
||
``` | ||
make packages | ||
``` | ||
|
||
If the `$version` of your `$distro` is supported, this will leave the | ||
resulting packages in `packages/$distro-$version`. Building packages | ||
this way requires `docker`, but it does not require you to install | ||
the full set of build dependencies of CRI Resource Manager to your host. | ||
|
||
If you want to build packages without docker, you can use either | ||
`make rpm` or `make deb`, depending on which supported distro you are | ||
running. Building this way requires all the build dependencies to be | ||
installed on your host. | ||
|
||
You can check which `$distro`'s and `$version`'s are supported by running | ||
|
||
``` | ||
ls dockerfiles/cross-build | ||
``` | ||
|
||
If you see a `Dockerfile.$distro-$version` matching your host then your | ||
distro is supported. | ||
|
||
## Building packages for another distro | ||
|
||
You can cross-build packages of the native `$type` for a particular | ||
`$version` of a `$distro` by running the following command: | ||
|
||
``` | ||
make cross-$type.$distro-$version | ||
``` | ||
|
||
Similarly to `make packages`, this will build packages using a `Docker\*` | ||
container. However, instead of building for your host, it will build them | ||
for the specified distro. For instance `make cross-deb.ubuntu-18.04` will | ||
build `deb` packages for `Ubuntu\* 18.04` and `make cross-rpm.centos-8` will | ||
build `rpm` packages for `CentOS\* 8` | ||
|
||
## Post-install configuration | ||
|
||
The provided packages install `systemd` service files and a sample | ||
configuration. The easiest way to get up and running is to rename the sample | ||
configuration and start CRI Resource Manager using systemd. You can do this | ||
using the following commands: | ||
|
||
``` | ||
mv /etc/cri-resmgr/fallback.cfg.sample /etc/cri-resmgr/fallback.cfg | ||
systemctl start cri-resource-manager | ||
``` | ||
|
||
If you want, you can set CRI Resource Manager to automatically start | ||
when your system boots with this command: | ||
|
||
``` | ||
systemctl enable cri-resource-manager | ||
``` | ||
|
||
The provided packages also install a file for managing the default options | ||
passed to CRI Resource Manager upon startup. You can change these by editing | ||
this file and then restarting CRI Resource Manager, like this: | ||
|
||
``` | ||
# On Debian\*-based systems edit the defaults like this: | ||
${EDITOR:-vi} /etc/default/cri-resource-manager | ||
# On rpm-based systems edit the defaults like this: | ||
${EDITOR:-vi} /etc/sysconfig/cri-resource-manager | ||
# Restart the service. | ||
systemctl restart cri-resource-manager | ||
```console | ||
cd build/images | ||
ctr -n k8s.io image import nri-resource-policy-topology-aware-image-321ca3aad95e.tar | ||
kubectl apply -f nri-resource-policy-topology-aware-deployment.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.