Skip to content

Commit cbfdda8

Browse files
authored
Merge pull request cri-o#1263 from wking/doc-stale-make-output
kubernetes: Simplify and freshen the required-files table
2 parents 1bb5846 + 15d839e commit cbfdda8

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

kubernetes.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ Below, you can find an instruction how to switch one or more nodes on running ku
1313

1414
### Preparing crio
1515

16-
You must prepare and install `crio` on each node you would like to switch. Here's the list of files that must be provided:
17-
18-
| File path | Description | Location |
19-
|--------------------------------------------|----------------------------|-----------------------------------------------------|
20-
| `/etc/crio/crio.conf` | crio configuration | Generated on cri-o `make install` |
21-
| `/etc/crio/seccomp.conf` | seccomp config | Example stored in cri-o repository |
22-
| `/etc/containers/policy.json` | containers policy | Example stored in cri-o repository |
23-
| `/bin/{crio, runc}` | `crio` and `runc` binaries | Built from cri-o repository |
24-
| `/usr/local/libexec/crio/conmon` | `conmon` binary | Built from cri-o repository |
25-
| `/opt/cni/bin/{flannel, bridge,...}` | CNI plugins binaries | Can be built from sources `containernetworking/cni` |
26-
| `/etc/cni/net.d/10-mynet.conf` | Network config | Example stored in [README file](README.md) |
16+
You must prepare and install `crio` on each node you would like to switch.
17+
Besides the files installed by `make install install.config`, here's the list of files that must be provided:
18+
19+
| File path | Description | Location |
20+
|--------------------------------------------|-----------------------------|---------------------------------------------------------|
21+
| `/etc/containers/policy.json` | containers policy | [Example](test/policy.json) stored in cri-o repository |
22+
| `/bin/runc` | `runc` or other OCI runtime | Can be build from sources `opencontainers/runc` |
23+
| `/opt/cni/bin/{flannel, bridge,...}` | CNI plugins binaries | Can be built from sources `containernetworking/plugins` |
24+
| `/etc/cni/net.d/...` | CNI network config | Example [here](contrib/cni) |
2725

2826
`crio` binary can be executed directly on host, inside the container or in any way.
2927
However, recommended way is to set it as a systemd service.

tutorial.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -138,32 +138,12 @@ make
138138
sudo make install
139139
```
140140

141-
Output:
142-
143-
```
144-
install -D -m 755 crio /usr/local/bin/crio
145-
install -D -m 755 conmon/conmon /usr/local/libexec/crio/conmon
146-
install -D -m 755 pause/pause /usr/local/libexec/crio/pause
147-
install -d -m 755 /usr/local/share/man/man{1,5,8}
148-
install -m 644 docs/crio.conf.5 -t /usr/local/share/man/man5
149-
install -m 644 docs/crio.8 -t /usr/local/share/man/man8
150-
install -D -m 644 crio.conf /etc/crio/crio.conf
151-
install -D -m 644 seccomp.json /etc/crio/seccomp.json
152-
```
153-
154-
If you are installing for the first time, generate config as follows:
141+
If you are installing for the first time, generate and install configuration files with:
155142

156143
```
157144
sudo make install.config
158145
```
159146

160-
Output:
161-
162-
```
163-
install -D -m 644 crio.conf /etc/crio/crio.conf
164-
install -D -m 644 seccomp.json /etc/crio/seccomp.json
165-
```
166-
167147
#### Start the crio system daemon
168148

169149
```

0 commit comments

Comments
 (0)