From 123c0c4f36209d921ef2a7acf90fbfc7e8761270 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Wed, 18 May 2022 11:25:47 -0400 Subject: [PATCH] Adds proxy config to operator guide --- modules/operator-deploy-cli.adoc | 55 +++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/modules/operator-deploy-cli.adoc b/modules/operator-deploy-cli.adoc index 23ca32343..2d04edf6b 100644 --- a/modules/operator-deploy-cli.adoc +++ b/modules/operator-deploy-cli.adoc @@ -50,6 +50,60 @@ metadata: spec: configBundleSecret: init-config-bundle-secret ---- + +.. If you have a proxy configured, you can add the information using overrides for Quay, Clair, and mirroring: ++ +.quayregistry.yaml: +[source,yaml] +---- + kind: QuayRegistry + metadata: + name: quay37 + spec: + configBundleSecret: config-bundle-secret + components: + - kind: objectstorage + managed: false + - kind: route + managed: true + - kind: mirror + managed: true + overrides: + env: + - name: DEBUGLOG + value: "true" + - name: HTTP_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 + - name: HTTPS_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 + - name: NO_PROXY + value: svc.cluster.local,localhost,quay370.apps.quayperf370.perfscale.devcluster.openshift.com + - kind: tls + managed: false + - kind: clair + managed: true + overrides: + env: + - name: HTTP_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 + - name: HTTPS_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 + - name: NO_PROXY + value: svc.cluster.local,localhost,quay370.apps.quayperf370.perfscale.devcluster.openshift.com + - kind: quay + managed: true + overrides: + env: + - name: DEBUGLOG + value: "true" + - name: NO_PROXY + value: svc.cluster.local,localhost,quay370.apps.quayperf370.perfscale.devcluster.openshift.com + - name: HTTP_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 + - name: HTTPS_PROXY + value: quayproxy.qe.devcluster.openshift.com:3128 +---- + . Create the `QuayRegistry` in specified namespace: + ```sh @@ -61,4 +115,3 @@ $ oc create -n quay-enterprise -f quayregistry.yaml ```sh $ oc get quayregistry -n quay-enterprise example-registry -o jsonpath="{.status.registryEndpoint}" -w ``` -