Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for customize CRI. #2107

Merged
merged 1 commit into from
Mar 16, 2023
Merged
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
18 changes: 18 additions & 0 deletions docs/api/cloudrootfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,24 @@ The follow files are reserved by the system, you can override them to realize th
- init-registry.sh, for installing registry.
- init-kube.sh, for installing kube*.

If you want to add a new CRI type, you can put packages in this directory, and add a couple of scripts named ${CRI_NAME}.sh and uninstall-${CRI_NAME}.sh in directory $rootfs/scripts:

- ${CRI_NAME}.sh: used to install this CRI, and write the CRI socket info into /etc/sealerio/cri/socket-path
- uninstall-${CRI_NAME}.sh: used to uninstall this CRI

Users can specify container runtime type to use customized CRI:

Clusterfile:

```yaml
apiVersion: sealer.io/v1
kind: Cluster
spec:
containerRuntime:
type: ${CRI_NAME}
...
```

## Hooks

```shell script
Expand Down
3 changes: 2 additions & 1 deletion docs/api/clusterfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ spec:
certSANS:
- aliyun-inc.com
- 10.0.0.2

containerRuntime:
type: docker
masters: # if provider is ALI_CLOUD or CONTAINER, you can specify the number of server, if BAREMETAL using ipList.
cpu: 4
memory: 8
Expand Down