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

To download Cloudera Anywhere Cloud public and Cloudera Cloud Factory container images and Helm charts, you must meet the following requirements:
  • 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

Confirm access to the required repository by running the below example artifact:
curl -ku "login:password" \
  https://container.repository.cloudera.com/v2/cloudera-helm/awc-core/anywhere-cloud/manifests/1.0.0-b24
A 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.

  1. Log into the Cloudera source registry using your license credentials.
    docker login container.repository.cloudera.com
  2. Log into your private registry.
  3. Run the following CLI commands to mirror the Cloudera Anywhere Cloud and data application images to your private registry.
    cd /user-directory/user/workspace/awc/awc-marketplace-spec
    
    make cli
    
    # Mirror platform Images
    
    ./awc-marketplace mirror platform \
    
     --product-ref container.repository.cloudera.com/cloudera/anywhere-cloud/release_manifest.json:0.1.0-b417 \
    
     --destination-registry 10.119.41.247 \
    
     --plain-http-dest \
    
     --namespace cloudera/awc-marketplace/awc-demo \
    
     --concurrency 8
    
    # Mirror data applications images (engines, blueprints, catalog, BOM images/charts)
    
    ./awc-marketplace mirror data-services \
    
     --source-registry container.repository.cloudera.com \
    
     --source-namespace cloudera/awc-marketplace/awc-demo \
    
     --destination-registry 10.119.41.247 \
    
     --plain-http-dest \
    
     --namespace cloudera/awc-marketplace/awc-demo \
    
     --engine-versions latest \
    
     --concurrency 8
    
Continue with the Cloudera Anywhere Cloud and provide your private registry URL during the installation process.

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 kubectl access to the cluster and openssl installed on your local machine.
  1. Validate the original certificate.
    openssl x509 -in ./registry-ca.pem -noout -subject -issuer -enddate

    The command prints the subject, issuer, and expiry date. If it fails to parse, obtain a valid CA file before you continue.

  2. Create a Secret in the Anywhere Cloud release namespace from the original file, using the exact key ca.crt.
    kubectl -n [***AWC-NS***] create secret generic my-registry-ca \
      --from-file=ca.crt=./registry-ca.pem

    Using --from-file preserves the PEM formatting.

  3. Reference the Secret from your install or upgrade values file.
    registryCA:
      existingSecret: my-registry-ca
      caBundle: ""
  4. Rerun the documented installation or upgrade with that values file.
  5. Verify the certificate that is actually stored in the Secret.
    kubectl -n [***AWC-NS***] get secret my-registry-ca \
      -o jsonpath='{.data.ca\.crt}' \
      | base64 -d \
      | openssl x509 -noout -subject -issuer -enddate

    A successful parse that prints the subject, issuer, and expiry date confirms that the stored certificate is readable.

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.