Ascender Registry
Ascender Registry is a private registry for Ansible collections and container images, such as execution environments. The installer deploys it into its own namespace with persistent storage for its database, collection artifacts, and container images.
What the installer deploys
In REGISTRY_NAMESPACE (default ascender-registry):
| Resource | Name | Purpose |
|---|---|---|
| Deployment | ascender-registry | The Registry web interface and APIs, on port 8080 |
| Deployment | ascender-registry-containers | A registry:2 container registry that stores container images, on port 5000 inside the cluster |
| ConfigMap | ascender-registry-config | Application settings |
| Secret | ascender-registry-secrets | Session key, secret key, and initial administrator password |
| Secret | ascender-registry-pull-secret | Depot image pull secret |
| PersistentVolumeClaims | ascender-registry-data, ascender-registry-artifacts, ascender-registry-container-storage | Database, collection artifacts, and container images |
| Ingress or Route | ascender-registry | Exposes the Registry at REGISTRY_HOSTNAME |
| Secret | ascender-registry-tls | TLS certificate, when k8s_lb_protocol is https on platforms that terminate TLS in the cluster |
Both deployments run one replica with the Recreate strategy, because their volumes are ReadWriteOnce.
Configuration
REGISTRY_INSTALL: true
REGISTRY_HOSTNAME: registry.example.com
REGISTRY_NAMESPACE: ascender-registry
REGISTRY_VERSION: "latest"
REGISTRY_CONFIG:
DEBUG: "false"
URL: "https://{{ REGISTRY_HOSTNAME }}"
SESSION_KEY: ""
SECRET_KEY: "<64 hexadecimal characters>"
DATA_PVC_SIZE: 5
ARTIFACTS_PVC_SIZE: 20
CONTAINER_STORAGE_PVC_SIZE: 50
REGISTRY_TLS_CRT_PATH: "~/ascender.crt"
REGISTRY_TLS_KEY_PATH: "~/ascender.key"
| Variable | Default | Description |
|---|---|---|
REGISTRY_INSTALL | false | Install Ascender Registry |
REGISTRY_HOSTNAME | registry.example.com | Host name of the Registry |
REGISTRY_NAMESPACE | ascender-registry | Kubernetes namespace for the Registry |
REGISTRY_VERSION | latest | Image tag of the Registry image |
REGISTRY_CONFIG.DEBUG | "false" | Verbose debug logging |
REGISTRY_CONFIG.URL | https://<REGISTRY_HOSTNAME> | Public base URL, used for security headers. HSTS is enabled when it starts with https:// |
REGISTRY_CONFIG.SESSION_KEY | Empty | Session encryption key, 64 hexadecimal characters. When empty, the application uses a key stored in its database |
REGISTRY_CONFIG.SECRET_KEY | CHANGEME | Key that encrypts sensitive data at rest with AES-256. Required: the application does not start while it is empty or CHANGEME |
REGISTRY_CONFIG.DATA_PVC_SIZE | 5 | Size of the application database volume, in GB |
REGISTRY_CONFIG.ARTIFACTS_PVC_SIZE | 20 | Size of the collection artifact volume, in GB |
REGISTRY_CONFIG.CONTAINER_STORAGE_PVC_SIZE | 50 | Size of the container image volume, in GB |
REGISTRY_TLS_CRT_PATH | ~/ascender.crt | TLS certificate for the Registry, when k8s_lb_protocol is https |
REGISTRY_TLS_KEY_PATH | ~/ascender.key | TLS private key for the Registry |
REGISTRY_PVC_STORAGE_CLASS | Cluster default | StorageClass of all three volumes. Applies on OCP |
REGISTRY_IMAGE | depot.ciq.com/ascender-pro/ascender-registry-images/ascender-registry | Image repository. Change it only to pull from a mirror |
REGISTRY_CONFIG is a single setting. If you define it in custom.config.yml, include every key you want to set; keys you leave out fall back to the defaults in this table, not to default.config.yml.
Generate the keys
config_vars.sh generates SECRET_KEY when it is empty or CHANGEME, and asks for both keys in advanced mode (-a). To generate them yourself:
openssl rand -hex 32
Run it once for each key and put the output in REGISTRY_CONFIG.SECRET_KEY and, optionally, REGISTRY_CONFIG.SESSION_KEY.
Data that the Registry encrypts, such as repository authentication tokens and passwords for upstream container registries, can only be decrypted with the same SECRET_KEY. Keep the value in custom.config.yml for the life of the installation and back it up with the rest of the file.
Match the URL to the protocol
REGISTRY_CONFIG.URL defaults to https://. If you install with k8s_lb_protocol: http, set it to http://<REGISTRY_HOSTNAME> so that the application does not send HSTS headers that force browsers to HTTPS.
TLS certificate
On platforms where the installer terminates TLS in the cluster, the Registry uses its own certificate variables. config_vars.sh does not copy your certificate paths into them, so if your certificate is not at ~/ascender.crt and ~/ascender.key, set REGISTRY_TLS_CRT_PATH and REGISTRY_TLS_KEY_PATH yourself. The certificate must cover REGISTRY_HOSTNAME.
Storage
The three volumes request 75 GiB by default. Size CONTAINER_STORAGE_PVC_SIZE for the execution environment and other images you plan to host, and ARTIFACTS_PVC_SIZE for the collections you plan to mirror. Set the sizes before the first installation; the installer does not resize existing volumes.
Log in
Open https://<REGISTRY_HOSTNAME> and log in as admin. On the first start, the administrator password is set to ASCENDER_ADMIN_PASSWORD. It is applied only when the Registry database is created, so changing ASCENDER_ADMIN_PASSWORD later has no effect; change the password in the Registry instead. See Getting started.
Activate the license
A valid license is required for the Registry's collection and container APIs to serve clients. Go to Administration > Settings > License and upload the license file from CIQ. See Registry license.
Next steps
- Mirror collections and host execution environments: see the Ascender Registry user guides.
- Point Ascender and
ansible-galaxyclients at the Registry: see Consuming the registry.