OpenFaaS Standard and OpenFaaS for Enterprises are licensed for use within an airgap when purchased on an annual basis via invoice.
You can use your own choice of tooling to mirror images and bundle the Helm chart(s) required for your installations, or you can use our own purpose-built airfaas tool.
If your organisation has a policy of mirroring all consumed images from vendors into a private registry, then airfaas mirror can help you with this, even if you don't install OpenFaaS into an airgapped environment.
faas-cliplugingetairfaas
Mirror all images for the given chart/index to a custom registry:
The -f/--file flag can be used to write a values.yaml file with the mirrored image names, which can be used as an overlay to your existing values.yaml file when deploying OpenFaaS.
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:.
Note: if you receive an access denied error from ghcr.io, it's most likely because you have an old, expired access token in your local Docker config or keychain. Run docker logout ghcr.io to clear the token and try again.
Consume the mirrored images from your own registry¶
There are two options for consuming the mirrored images:
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
Use the generated generated values.yaml file produced by running arifaas mirror with the --file flag 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.
imagePullSecrets:-name:ecr-pull-secret
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.
Option 2 - Use the generated values file produced by airfaas as an overlay to your existing values.yaml file.¶
Run faas-cli airfaas mirror with the --file flag to generate a values.yaml file with the mirrored image names e.g:
Your final OpenFaaS Pro installation may look something like, where you use the standard values-pro.yaml file, your own settings in values-staging.yaml, then finally the mirrored images overlaid over that in values-mirror.yaml:
Airfaas can perform an offline installation of OpenFaaS into an airgapped environment. It will bundle the Helm chart(s) and images required for the installation, then restore the images into an offline registry, and install OpenFaaS using the Helm chart(s) from the local filesystem.