Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions tutorials/install-distro.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ We also save releases as subprojects. If you'd, for instance, like to use `1.18.
## Installation Instructions

### openSUSE:

Run the following as root:
```shell
sudo zypper install cri-o
zypper install cri-o
```

### Fedora 31 or later

Run the following as root:
```shell
sudo dnf module enable cri-o:$VERSION
sudo dnf install cri-o
dnf module enable cri-o:$VERSION
dnf install cri-o
```
For Fedora, we only support setting minor versions. i.e: `VERSION=1.18`, and do not support pinning patch versions: `VERSION=1.18.3`

Expand All @@ -45,12 +49,12 @@ And then run the following as root:
```shell
curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/devel:kubic:libcontainers:stable.repo
curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$VERSION/$OS/devel:kubic:libcontainers:stable:cri-o:$VERSION.repo
yum install cri-o
yum install -y cri-o
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one more nit: if we drop the other -ys, then we should drop this one as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one more nit: if we drop the other -ys, then we should drop this one as well

@haircommander I missed this, thanks for noticing :)

```

### Apt based operating systems

Note: this tutorial assumes you have curl and gnupg installed
Note: these are prerequisites for installing

To install on the following operating systems, set the environment variable $OS as the appropriate field in the following table:
| Operating system | $OS |
Expand All @@ -64,13 +68,16 @@ To install on the following operating systems, set the environment variable $OS

And then run the following as root:
```shell
apt update
apt install ca-certificates curl gnupg
apt upgrade

echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
echo "deb [signed-by=/usr/share/keyrings/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list

mkdir -p /usr/share/keyrings
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/Release.key | gpg --dearmor -o /usr/share/keyrings/libcontainers-crio-archive-keyring.gpg

apt-get update
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoot I think we still need this.

can you add it back, commit the changes, and squash the commits together with
git rebase -i upstream/main and then change the pick of the second line to s and quit the editor? then force push the branch

apt-get install cri-o
apt install cri-o
```
6 changes: 6 additions & 0 deletions tutorials/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ simply apply the [cluster.yaml][7] from the root directory of this repository:
> kubectl create -f contrib/metrics-exporter/cluster.yaml
```

or directly without the need to be inside the repo:

```
> kubectl create -f https://raw.githubusercontent.com/cri-o/cri-o/main/contrib/metrics-exporter/cluster.yaml
```

The `CRIO_METRICS_PORT` environment variable is set per default to `"9090"` and
can be used to customize the metrics port for the nodes. If the deployment is
up and running, it should log the registered nodes as well as that a new
Expand Down