Skip to content

Commit d241549

Browse files
authored
Merge pull request #13644 from bmcelvee/osdocs-238-console-overview
osdocs-238 add console overview
2 parents c93a148 + 3bbb0f5 commit d241549

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Distros: openshift-*
122122
Topics:
123123
- Name: Architecture
124124
File: architecture
125+
- Name: Web console
126+
File: web-console
125127
---
126128
Name: Installing clusters on AWS
127129
Dir: installing-aws

architecture/web-console.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
[id='web-console']
3+
= Web console
4+
include::modules/common-attributes.adoc[]
5+
:context: web-console
6+
toc::[]
7+
8+
{nbsp}
9+
10+
The {product-title} web console is a user interface accessible from a web browser.
11+
Developers can use the web console to visualize, browse, and manage the contents
12+
of projects.
13+
14+
.Prerequisites
15+
16+
* JavaScript must be enabled to use the web console. For the best experience, use
17+
a web browser that supports
18+
link:http://caniuse.com/#feat=websockets[WebSockets].
19+
20+
include::modules/web-console-overview.adoc[leveloffset=+1]
21+
22+
ifdef::openshift-enterprise,openshift-online[]
23+
include::modules/web-console-statefulsets.adoc[leveloffset=+1]
24+
endif::[]

modules/web-console-overview.adoc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Module included in the following assemblies:
2+
// * assembly/architecture
3+
4+
[id='web-console-overview-{context}']
5+
= Understanding the web console
6+
7+
The web console runs as a pod on the master. The static assets required to run
8+
the web console are served by the pod. Administrators can also customize the web
9+
console using extensions, which let you run scripts and load custom stylesheets
10+
when the web console loads.
11+
12+
When you access the web console from a browser, it first loads all required
13+
static assets. It then makes requests to the {product-title} APIs using the
14+
values defined from the `oc cluster up` option `--public-master`, or from the
15+
related parameter `masterPublicURL` in the `webconsole-config` config map
16+
defined in the `openshift-web-console` namespace. The web console uses
17+
WebSockets to maintain a persistent connection with the API server and receive
18+
updated information as soon as it is available.
19+
20+
The configured host names and IP addresses for the web console are whitelisted
21+
to access the API server safely even when the browser would consider the
22+
requests to be cross-origin. To access the API server from a web application
23+
using a different host name, you must whitelist that host name by specifying the
24+
`--cors-allowed-origins` option on `oc cluster up` or from the related master
25+
configuration file parameter `corsAllowedOrigins`.
26+
27+
The `corsAllowedOrigins` parameter is controlled by the configuration field. No
28+
pinning or escaping is done to the value. The following is an example of how you
29+
can pin a host name and escape dots:
30+
31+
----
32+
corsAllowedOrigins:
33+
- (?i)//my\.subdomain\.domain\.com(:|\z)
34+
----
35+
36+
* The `(?i)` makes it case-insensitive.
37+
* The `//` pins to the beginning of the domain (and matches the double slash
38+
following `http:` or `https:`).
39+
* The `\.` escapes dots in the domain name.
40+
* The `(:|\z)` matches the end of the domain name `(\z)` or a port separator `(:)`.

modules/web-console-statefulsets.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Module included in the following assemblies:
2+
// * assembly/architecture
3+
4+
[id='web-console-statefulsets-{context}']
5+
= StatefulSets
6+
7+
A `StatefulSet` controller provides a unique identity to its pods and determines
8+
the order of deployments and scaling. `StatefulSet` is useful for unique network
9+
identifiers, persistent storage, graceful deployment and scaling, and graceful
10+
deletion and termination.

0 commit comments

Comments
 (0)