Skip to content

Commit 8a308ef

Browse files
authored
Merge pull request #3 from lengrongfu/fix/controller
update README.mmd
2 parents eb67d7d + 9fb2d1a commit 8a308ef

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![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)
2+
13
# runtime-copilot
24
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.
35

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

2224
To install the runtime-copilot chart:
2325

24-
helm install runtime-copilot runtime-copilot/charts --namespace runtime-copilot
26+
helm install runtime-copilot runtime-copilot/runtime-copilot --namespace runtime-copilot
2527

2628
To uninstall the chart:
2729

28-
helm delete runtime-copilot --namespace runtime-copilot
30+
helm delete runtime-copilot --namespace runtime-copilot
31+
32+
## Examples
33+
34+
We add `10.6..112.191` this insecret registry to containerd, we can define yaml content follow file.
35+
36+
```yaml
37+
apiVersion: config.registry.runtime.copilot.io/v1alpha1
38+
kind: RegistryConfigs
39+
metadata:
40+
name: registryconfigs-sample
41+
spec:
42+
selector:
43+
matchLabels:
44+
app: registryconfigs-sample
45+
template:
46+
spec:
47+
hostConfigs:
48+
- server: "https://10.6.112.191"
49+
capabilities:
50+
- pull
51+
- push
52+
- resolve
53+
skip_verify: true
54+
```
55+
56+
57+
After executing `kubectl apply`, the following `hosts.toml` file will be generated on each node, the content is as follows:
58+
59+
```yaml
60+
server = "https://10.6.112.191"
61+
62+
[host]
63+
[host."https://10.6.112.191"]
64+
capabilities = ["pull", "push", "resolve"]
65+
skip_verify = true
66+
override_path = false
67+
```
68+

0 commit comments

Comments
 (0)