Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ Topics:
Distros: openshift-enterprise,openshift-origin
- Name: Configuring your firewall
File: configuring-firewall
- Name: Enable cluster-wide proxy
File: enable-cluster-wide-proxy
# - Name: Configuring a custom certificate authority
# File: configuring-custom-ca
---
Expand Down
29 changes: 29 additions & 0 deletions installing/install_config/enable-cluster-wide-proxy.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[id="enable-cluster-wide-proxy"]
= Enable cluster-wide proxy
include::modules/common-attributes.adoc[]
:context: enable-cluster-wide-proxy

toc::[]

The `Proxy` object is used to manage cluster-wide egress proxy. When a cluster is
installed or upgraded without proxy configured, a proxy object is still
generated but it will have a nil spec/status. For example:

----
$ oc get proxy/cluster -o yaml
apiVersion: config.openshift.io/v1
kind: Proxy
metadata:
creationTimestamp: "2019-08-21T22:36:49Z"
generation: 2
name: cluster
resourceVersion: "24913"
selfLink: /apis/config.openshift.io/v1/proxies/cluster
uid: <user ID string>
spec:
trustedCA:
name: ""
status:
----

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bmcelvee currently enable-cluster-wide-proxy.adoc provides guidance on how to modify a cluster to enable proxy, but not how to create a cluster with proxy enabled. Do you mind using some of the references I provided here to expand enable-cluster-wide-proxy.adoc or create a new doc that provides the steps for creating a new cluster with proxy enabled?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll need a separate assembly to cover the installation with proxy piece. @bmcelvee, I might have time to make that next week.

include::modules/installation-proxy-configure-object.adoc[leveloffset=+1]
50 changes: 50 additions & 0 deletions modules/installation-proxy-configure-object.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Module included in the following assemblies:
//
// * installing/insall_config/enable-cluster-wide-proxy.adoc

[id="installation-proxy-configure-object_{context}"]
= Configure the Proxy object

A cluster administrator can interact with the `Proxy` object using
{product-title} `oc` commands.

.Prerequisites

* Cluster administrator permissions
* {product-title} `oc` commands installed

.Procedure

. Use the `oc edit` command to modify the `Proxy` object:

----
$ oc edit proxy/cluster -o yaml
----

. Use the `oc get` command to view the modified file:

----
$ oc get proxy/cluster -o yaml
apiVersion: config.openshift.io/v1
kind: Proxy
metadata:
creationTimestamp: "2019-08-21T22:36:49Z"
generation: 2
name: cluster
resourceVersion: "24913"
selfLink: /apis/config.openshift.io/v1/proxies/cluster
uid: <user ID string>
spec:
httpProxy: <http://proxy>
httpsProxy: <https://proxy>
noProxy: example.com
readinessEndpoints:
- http://www.google.com
- https://www.google.com
trustedCA:
name: user-ca-bundle
status:
httpProxy: <http://proxy>
httpsProxy: <https://proxy>
noProxy: <IPs and URLs>
----