diff --git a/Guide-Quay.md b/Guide-Quay.md index 5f89ded..11ab5d0 100644 --- a/Guide-Quay.md +++ b/Guide-Quay.md @@ -1,4 +1,4 @@ -# Deploying Quay Instances on OpenShift +# Deploying Quay Instances on OpenShift [Feature WIP] ## Table of Contents - [Overview](#overview) @@ -66,7 +66,57 @@ Please follow the [official guide](https://docs.redhat.com/en/documentation/red_ ## Advanced Installation -For advanced installations, refer to the official documentation: +It is also possible to pre-create a config and refer to it before installing quay. + +First, create the yaml file with the desired modifications, for example: + +```yaml +FEATURE_USER_INITIALIZE: true +``` + +Then, create it in your OpenShift project as a secret: + +``` +oc create secret generic --from-file config.yaml=../config.yaml config-bundle-secret +``` + +Afterwards, refer to it from your Quay Registry definition manifest: +```yaml +kind: QuayRegistry +apiVersion: quay.redhat.com/v1 +metadata: + name: <<[your-quay-instance-name]>> + namespace: <<[your-namespace]>> +spec: + configBundleSecret: config-bundle-secret + components: + - kind: clair + managed: true + - kind: postgres + managed: true + - kind: objectstorage + managed: true + - kind: redis + managed: true + - kind: horizontalpodautoscaler + managed: true + - kind: route + managed: true + - kind: mirror + managed: true + - kind: monitoring + managed: true + - kind: tls + managed: true + - kind: quay + managed: true + - kind: clairpostgres + managed: true +``` + +After installation, a new secret will be created named that merges the defined config with the default config values: [quay-registry-name]-quay-config-secret-[id] + +For more information on advanced installations, refer to the official documentation: [Deploying Quay Registry](https://docs.redhat.com/en/documentation/red_hat_quay/3.15/html/deploying_the_red_hat_quay_operator_on_openshift_container_platform/deploying-quay-registry) ## References