Skip to content

Commit

Permalink
update README.mmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lengrongfu committed May 15, 2023
1 parent a3fd2f1 commit 9fb2d1a
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Github Ci Action](https://github.com/lengrongfu/runtime-copilot/actions/workflows/ci.yml/badge.svg)![Github Image Action](https://github.com/lengrongfu/runtime-copilot/actions/workflows/push-images.yml/badge.svg)![Github Chart Action](https://github.com/lengrongfu/runtime-copilot/actions/workflows/release.yml/badge.svg)

# runtime-copilot
The main function of the runtime copilot is to assist the operation of the container runtime component (containerd), specifically for adding or deleting non-safe registries.

Expand All @@ -21,8 +23,46 @@ runtime-copilot` to see the charts.

To install the runtime-copilot chart:

helm install runtime-copilot runtime-copilot/charts --namespace runtime-copilot
helm install runtime-copilot runtime-copilot/runtime-copilot --namespace runtime-copilot

To uninstall the chart:

helm delete runtime-copilot --namespace runtime-copilot
helm delete runtime-copilot --namespace runtime-copilot

## Examples

We add `10.6..112.191` this insecret registry to containerd, we can define yaml content follow file.

```yaml
apiVersion: config.registry.runtime.copilot.io/v1alpha1
kind: RegistryConfigs
metadata:
name: registryconfigs-sample
spec:
selector:
matchLabels:
app: registryconfigs-sample
template:
spec:
hostConfigs:
- server: "https://10.6.112.191"
capabilities:
- pull
- push
- resolve
skip_verify: true
```


After executing `kubectl apply`, the following `hosts.toml` file will be generated on each node, the content is as follows:

```yaml
server = "https://10.6.112.191"

[host]
[host."https://10.6.112.191"]
capabilities = ["pull", "push", "resolve"]
skip_verify = true
override_path = false
```

0 comments on commit 9fb2d1a

Please sign in to comment.