Assigning a profile to a project

Assign a certificate and trust profile to a project after the project cluster is Ready, and enable DNS first if the profile uses Let's Encrypt.

  • The project cluster is Ready and no operation is running on the project.
  • For a Let's Encrypt profile, a DNS credential exists in the organization of the project.
  • A certificate and trust profile exists in the same organization.

You can select a certificate and trust profile in the Add Project form when you create the project, or later in the project settings, as described in this topic. A Let's Encrypt profile requires DNS on the project, so enable DNS and wait until it is synced before you assign the profile. Self-Signed, Customer-Provided CA, and trust-only profiles do not require DNS, so you can skip the DNS steps for them.

  1. Open the project.
  2. Click Settings in the toolbar.
  3. In the DNS section, turn on the switch.
  4. Select a DNS credential from the drop-down list.
  5. Click Enable DNS.
    The hostname comes from the project name and the zone in the credential. For example, the project demo-project and the zone example.com result in demo-project.example.com.
  6. Wait until DNS is enabled and synced.
    The Certificate & Trust Profile section becomes available.
  7. Open the Certificate & Trust Profile section, select the profile, and apply the change.

The profile now appears in the Certificate & Trust Profile field at the top of the project details page. If the profile uses the Let's Encrypt mode, Cloudera Cloud Factory also creates a ClusterIssuer on the project cluster, normally named ccf-default. Applications on the cluster can request certificates by referencing this name. To confirm it exists, run the following command on the project cluster:

kubectl get clusterissuer ccf-default

After the profile is assigned, the ccf-cert-manager namespace on the project cluster contains cert-manager. It also contains trust-manager only if the profile is trust-only or has CA bundles. When DNS is on, the ccf-external-dns namespace contains the deployment external-dns-primary.