Harbor
We use Crossplane to provision Harbor configuration.
Create a new user
-
Go to this directory.
-
Create a new .yaml secret file for storing the user password.
-
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.passwordSecretRefpoints to the secret created in step 2 (same key, name and namespace). -
Push the changes to the repository.
Create a new project
- Go to this directory.
- Create a new .yaml file and specify the required fields following the API reference. You can start copying another project configuration.
- Push the changes to the repository.
Allow Kubernetes to use the Harbor registry
-
Create a robot account in this directory.
-
Create a registry secret in this directory.
Note: The auth key needs to be in format
username:passwordand encoded in base64. -
See replicate-secrets-across-namespaces to avoid replicating the secret manually.