Skip to content

Commit 9fad6d7

Browse files
authored
Merge pull request #58231 from xenolinux/update-cluster-wide-proxy-albo
Update configuring cluster-wide proxy section for ALBO
2 parents e5641d9 + 3f89c86 commit 9fad6d7

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

modules/configuring-egress-proxy.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="nw-configuring-cluster-wide-proxy_{context}"]
77
= Configuring the AWS Load Balancer Operator to trust the certificate authority of the cluster-wide proxy
88

9-
. Create the config map to contain the certificate authority (CA) bundle in the `aws-load-balancer-operator` namespace by running the following command:
9+
. Create the config map to contain the certificate authority (CA) bundle in the `aws-load-balancer-operator` namespace and inject a CA bundle that is trusted by {product-title} into a config map by running the following command:
1010
+
1111
[source,terminal]
1212
----
@@ -24,23 +24,24 @@ $ oc -n aws-load-balancer-operator label cm trusted-ca config.openshift.io/injec
2424
+
2525
[source,terminal]
2626
----
27-
$ oc -n aws-load-balancer-operator patch subscription aws-load-balancer-operator --type='merge' -p '{"spec":{"config":{"volumes":[{"name":"trusted-ca","configMap":{"name":"trusted-ca"}}],"volumeMounts":[{"name":"trusted-ca","mountPath":"/etc/pki/tls/certs/albo-tls-ca-bundle.crt","subPath":"ca-bundle.crt"}]}}}'
27+
$ oc -n aws-load-balancer-operator patch subscription aws-load-balancer-operator --type='merge' -p '{"spec":{"config":{"env":[{"name":"TRUSTED_CA_CONFIGMAP_NAME","value":"trusted-ca"}],"volumes":[{"name":"trusted-ca","configMap":{"name":"trusted-ca"}}],"volumeMounts":[{"name":"trusted-ca","mountPath":"/etc/pki/tls/certs/albo-tls-ca-bundle.crt","subPath":"ca-bundle.crt"}]}}}'
2828
----
2929

3030
. After the deployment of the AWS Load Balancer Operator is completed, verify that the CA bundle is added to the `aws-load-balancer-operator-controller-manager` deployment by running the following command:
3131
+
3232
[source,terminal]
3333
----
34-
$ oc -n aws-load-balancer-operator exec deploy/aws-load-balancer-operator-controller-manager -c manager -- ls -l /etc/pki/tls/certs/albo-tls-ca-bundle.crt
34+
$ oc -n aws-load-balancer-operator exec deploy/aws-load-balancer-operator-controller-manager -c manager -- bash -c "ls -l /etc/pki/tls/certs/albo-tls-ca-bundle.crt; printenv TRUSTED_CA_CONFIGMAP_NAME"
3535
----
3636
+
3737
.Example output
3838
[source,terminal]
3939
----
4040
-rw-r--r--. 1 root 1000690000 5875 Jan 11 12:25 /etc/pki/tls/certs/albo-tls-ca-bundle.crt
41+
trusted-ca
4142
----
4243

43-
. Optional: Restart deployment of the AWS Load Balancer Operator every time the configmap changes by running the following command:
44+
. Optional: Restart deployment of the AWS Load Balancer Operator every time the config map changes by running the following command:
4445
+
4546
[source,terminal]
4647
----
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
:_content-type: ASSEMBLY
22
[id="nw-aws-load-balancer-operator-cluster-wide-proxy"]
33
= Configuring cluster-wide proxy
4+
include::_attributes/common-attributes.adoc[]
45
:context: aws-load-balancer-operator
56

67
toc::[]
78

8-
You can configure the cluster-wide proxy in the AWS Load Balancer Operator. After configuring the cluster-wide proxy in the AWS Load Balancer Operator, Operator Lifecycle Manager (OLM) automatically updates all the deployments of the Operators with the environment variables such as `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`.
9+
You can configure the cluster-wide proxy in the AWS Load Balancer Operator. After configuring the cluster-wide proxy in the AWS Load Balancer Operator, Operator Lifecycle Manager (OLM) automatically updates all the deployments of the Operators with the environment variables such as `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`. These variables are populated to the managed controller by the AWS Load Balancer Operator.
910

10-
include::modules/configuring-egress-proxy.adoc[leveloffset=+1]
11+
include::modules/configuring-egress-proxy.adoc[leveloffset=+1]
12+
13+
[role="_additional-resources"]
14+
== Additional resources
15+
16+
* xref:../../networking/configuring-a-custom-pki.adoc#certificate-injection-using-operators_configuring-a-custom-pki[Certificate injection using Operators]

0 commit comments

Comments
 (0)