Skip to main content

Harbor

We use Crossplane to provision Harbor configuration.

Create a new user​

  1. Go to this directory.

  2. Create a new .yaml secret file for storing the user password.

  3. Create a new .yaml file and specify the required fields following the API reference. You can start copying another user configuration.

    Note: Make sure the spec.forProvider.passwordSecretRef points to the secret created in step 2 (same key, name and namespace).

  4. Push the changes to the repository.

Create a new project​

  1. Go to this directory.
  2. Create a new .yaml file and specify the required fields following the API reference. You can start copying another project configuration.
  3. Push the changes to the repository.

Allow Kubernetes to use the Harbor registry​

  1. Create a robot account in this directory.

  2. Create a registry secret in this directory.

    Note: The auth key needs to be in format username:password and encoded in base64.

  3. See replicate-secrets-across-namespaces to avoid replicating the secret manually.