Skip to content

Commit 8f2f15a

Browse files
Merge pull request #57401 from xenolinux/ALBO-cluster-wide-proxy
OCPBUGS#10544: Configure the cluster wide proxy for ALBO
2 parents 13d6c61 + ff873b8 commit 8f2f15a

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,8 @@ Topics:
11871187
File: multiple-ingress-through-single-alb
11881188
- Name: Adding TLS termination on the AWS Load Balancer
11891189
File: add-tls-termination
1190+
- Name: Configuring cluster-wide proxy on the AWS Load Balancer Operator
1191+
File: configure-egress-proxy-aws-load-balancer-operator
11901192
- Name: Multiple networks
11911193
Dir: multiple_networks
11921194
Distros: openshift-enterprise,openshift-origin

modules/configuring-egress-proxy.adoc

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/aws_load_balancer_operator/configure-egress-proxy-aws-load-balancer-operator.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="nw-configuring-cluster-wide-proxy_{context}"]
7+
= Configuring the AWS Load Balancer Operator to trust the certificate authority of the cluster-wide proxy
8+
9+
. Create the config map to contain the certificate authority (CA) bundle in the `aws-load-balancer-operator` namespace by running the following command:
10+
+
11+
[source,terminal]
12+
----
13+
$ oc -n aws-load-balancer-operator create configmap trusted-ca
14+
----
15+
16+
. To inject the trusted CA bundle into the config map, add the `config.openshift.io/inject-trusted-cabundle=true` label to the config map by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ oc -n aws-load-balancer-operator label cm trusted-ca config.openshift.io/inject-trusted-cabundle=true
21+
----
22+
23+
. Update the subscription of the AWS Load Balancer Operator to access the config map in the deployment of the AWS Load Balancer Operator by running the following command:
24+
+
25+
[source,terminal]
26+
----
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"}]}}}'
28+
----
29+
30+
. 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:
31+
+
32+
[source,terminal]
33+
----
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
35+
----
36+
+
37+
.Example output
38+
[source,terminal]
39+
----
40+
-rw-r--r--. 1 root 1000690000 5875 Jan 11 12:25 /etc/pki/tls/certs/albo-tls-ca-bundle.crt
41+
----
42+
43+
. Optional: Restart deployment of the AWS Load Balancer Operator every time the configmap changes by running the following command:
44+
+
45+
[source,terminal]
46+
----
47+
$ oc -n aws-load-balancer-operator rollout restart deployment/aws-load-balancer-operator-controller-manager
48+
----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:_content-type: ASSEMBLY
2+
[id="nw-aws-load-balancer-operator-cluster-wide-proxy"]
3+
= Configuring cluster-wide proxy
4+
:context: aws-load-balancer-operator
5+
6+
toc::[]
7+
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+
10+
include::modules/configuring-egress-proxy.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)