You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openfaas-pro/airgap.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,52 @@ faas-cli plugin get airfaas
15
15
Mirror all images for the given chart/index to a custom registry:
16
16
17
17
```bash
18
-
airfaas download images \
18
+
faas-cli airfaas download images \
19
19
openfaas/openfaas \
20
20
--registry-prefix ttl.sh
21
21
```
22
22
23
23
Mirror the Kafka-connector's images:
24
24
25
25
```bash
26
-
airfaas download images \
26
+
faas-cli airfaas download images \
27
27
openfaas/kafka-connector \
28
28
--registry-prefix ttl.sh
29
29
```
30
30
31
31
The `--url` flag can be used to specify a different Helm chart repository. The only requirement is that images are stored in the same format as OpenFaaS: i.e. `image:` or `componentName.image:`.
32
32
33
+
## Consume the mirrored images from your own registry
34
+
33
35
After the mirroring is complete, you'll receive output in the format of a values.yaml file, which you can add to your `helm upgrade --install` command.
There are two options for consuming the mirrored images:
43
+
44
+
1. Use the `registryPrefix` setting to add a prefixed string i.e. your registry to the image name across all images i.e. `registryPrefix: aws_account_id.dkr.ecr.us-west-2.amazonaws.com/openfaas`
45
+
2. Use the generated text produced by `airfaas` as an overlay to your existing `values.yaml` file.
If you need a custom image pull secret for the registry, create it and then add it to the `imagePullSecrets` section of the `values.yaml` file.
54
+
55
+
```yaml
56
+
imagePullSecrets:
57
+
- name: ecr-pull-secret
58
+
```
59
+
60
+
For certain registries such as AWS ECR, it's possible to use the ambient AWS IAM credentials to authenticate the registry without overriding the default `imagePullSecrets` setting.
61
+
62
+
### Option 2 - Use the generated text produced by `airfaas` as an overlay to your existing `values.yaml` file.
0 commit comments