Container repository access for air-gapped environments
Ensure that you have access to the Cloudera Anywhere Cloud and Cloudera Cloud Factory repository to be able to mirror the Cloudera Anywhere Cloud to your private repository.
Before you begin
- Have an active subscription agreement
- Obtain valid authentication credentials (username and password)
Obtaining Your Credentials
Credentials are delivered through email as part of the subscription fulfillment process. If you have not receive them or cannnot locate them, you can contact your Cloudera sales representative.
File a non-technical case through the Cloudera support portal to get assistance from the Cloudera Support team.
Verifying Repository Access
curl -ku "login:password" \
https://container.repository.cloudera.com/v2/cloudera-helm/awc-core/anywhere-cloud/manifests/1.0.0-b24A
successful response returns a JSON manifest. An HTTP 401 indicates invalid or missing
licence entitlement.Mirroring Cloudera Anywhere Cloud images
Mirror the Cloudera images to a private registry when deploying Cloudera Anywhere Cloud in environments with no public internet connectivity.
- A private registry is available where the Cloudera images will be mirrored.
Supplying and verifying registry certificate authority
For a private-CA or air-gapped registry, supply the registry certificate authority (CA) to Cloudera Anywhere Cloud as a file-based Kubernetes Secret, and verify the stored certificate so that Flux can fetch charts from the registry.
Flux chart downloads and container image pulls use separate trust paths. The CA that Cloudera Cloud Factory installs for containerd covers node-level
image pulls, but the Flux source controller does not read the node trust store or the
ccf-trust-bundle. You must supply the registry CA through the chart's
registry-CA configuration so that the HelmRepository
certSecretRef can reference it. A successful container image pull does not
prove that Flux trusts the registry.
In the following steps, [***AWC-NS***] is the Anywhere Cloud release namespace.
- You have the original registry CA file, for example registry-ca.pem.
- You have
kubectlaccess to the cluster andopensslinstalled on your local machine.
The registry CA is stored in a readable Secret and referenced by
registryCA.existingSecret, so Flux can authenticate to the registry and
fetch charts.
For an existing installation that uses the chart-generated Secret, diagnose the stored certificate with the following command:
kubectl -n [***AWC-NS***] get secret awc-registry-ca \
-o jsonpath='{.data.ca\.crt}' \
| base64 -d \
| openssl x509 -noout -subject -issuer -enddate
A Could not find or decode certificate message indicates an unreadable
stored PEM. Recreate the Secret from the original file rather than repairing pasted text. For
more diagnosis, including how to distinguish a malformed PEM from a missing Secret, see Registry certificate authority Secret is unreadable.
