Skip to content

Commit 84b69dc

Browse files
docs: Instructions to provide registries.conf
1 parent d66681d commit 84b69dc

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ kubectl create secret generic snyk-monitor -n snyk-monitor --from-file=./dockerc
6363
kubectl create configmap snyk-monitor-certs -n snyk-monitor --from-file=<path_to_certs_folder>
6464
```
6565

66+
5. If you are using an insecure registry or your registry is using unqualified images, you can provide a `registries.conf` file. See [the documentation](https://github.com/containers/image/blob/master/docs/containers-registries.conf.5.md) for information on the format and examples.
67+
68+
Create a file named `registries.conf`, see example adding an insecure registry:
69+
70+
```
71+
[[registry]]
72+
location = "internal-registry-for-example.net/bar"
73+
insecure = true
74+
```
75+
76+
Once you've created the file, you can use it to create the following ConfigMap:
77+
```shell
78+
kubectl create configmap snyk-monitor-registries-conf -n snyk-monitor --from-file=<path_to_registries_conf_file>
79+
```
80+
6681
## Installation from YAML files ##
6782

6883
The `kubernetes-monitor` can run in one of two modes: constrained to a single namespace, or with access to the whole cluster.

snyk-monitor/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ kubectl create secret generic snyk-monitor -n snyk-monitor --from-file=./dockerc
5555
kubectl create configmap snyk-monitor-certs -n snyk-monitor --from-file=<path_to_certs_folder>
5656
```
5757

58+
5. If you are using an insecure registry or your registry is using unqualified images, you can provide a `registries.conf` file. See [the documentation](https://github.com/containers/image/blob/master/docs/containers-registries.conf.5.md) for information on the format and examples.
59+
60+
Create a file named `registries.conf`, see example adding an insecure registry:
61+
62+
```
63+
[[registry]]
64+
location = "internal-registry-for-example.net/bar"
65+
insecure = true
66+
```
67+
68+
Once you've created the file, you can use it to create the following ConfigMap:
69+
```shell
70+
kubectl create configmap snyk-monitor-registries-conf -n snyk-monitor --from-file=<path_to_registries_conf_file>
71+
```
72+
5873
## Installation from Helm repo ##
5974

6075
Add Snyk's Helm repo:

0 commit comments

Comments
 (0)