You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use an HTTP(S) proxy in `CRI-O`, you need to set the `HTTP_PROXY` and `HTTPS_PROXY` environment variables. You can also set the `NO_PROXY` variable to exclude a list of hosts from being proxied.
9
+
To use an HTTP(S) proxy in `CRI-O`, you must add a `Service` section to the configuration file and set the `HTTP_PROXY` and `HTTPS_PROXY` environment variables. You can also set the `NO_PROXY` variable to exclude a list of hosts from being proxied.
10
10
11
11
.Procedure
12
12
13
+
. Create the directory for the configuration file if it does not exist:
14
+
+
15
+
[source,terminal]
16
+
----
17
+
$ sudo mkdir /etc/systemd/system/crio.service.d/
18
+
----
19
+
13
20
. Add the following settings to the `/etc/systemd/system/crio.service.d/00-proxy.conf` file:
Copy file name to clipboardExpand all lines: modules/microshift-rpm-ostree-https.adoc
+4-3
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,15 @@
6
6
[id="microshift-rpm-ostree-https_{context}"]
7
7
= Using the RPM-OStree HTTP(S) proxy
8
8
9
-
To use the HTTP(S) proxy in RPM-OStree, set the `http_proxy environment` variable for the `rpm-ostreed` service.
9
+
To use the HTTP(S) proxy in RPM-OStree, you must add a `Service` section to the configuration file and set the `http_proxy environment` variable for the `rpm-ostreed` service.
10
10
11
11
.Procedure
12
12
13
-
. Add this setting to the `/etc/systemd/system/rpm-ostreed.service.d/00-proxy.conf` file by running the following command:
13
+
. Add this setting to the `/etc/systemd/system/rpm-ostreed.service.d/00-proxy.conf` file:
0 commit comments