OpenShift Router Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:
=Statistics=
=Statistics=


The statistics are available on port 1936 (or the value of "STATS_PORT" environment variable declared in the router configuration). See [[#Query|Query]] above. The user name is "admin" (or the value of "STATS_USERNAME" environment variable). The password is the value of the "STATS_PASSWORD" environment variable.
The statistics are available on port 1936 (or the value of "STATS_PORT" environment variable declared in the router configuration). See [[#Query|Query]] above. The user name is "admin" (or the value of "STATS_USERNAME" environment variable). <font color=red>The password is the value of the "STATS_PASSWORD" environment variable.</font>


  <font color=red>curl -u admin -p http://localhost:1936</font>
  <font color=red>curl -u admin -p http://localhost:1936</font>
=Liveness Probe=
curl http://localhost:1936/healthz
<pre> 
<html><body><h1>200 OK</h1>
Service ready.
</body></html>
</pre>
=Routing Pod Configuration=
The routing pod environment variables are controlled by the "router" deployment configuration in the "default" project:
oc get -o yaml dc/router -n default
Environment variables values can be changed with "oc env":
oc env dc/router ROUTER_EXTERNAL_HOST_INSECURE=true

Latest revision as of 00:10, 22 January 2018

Internal

Query

oadm router -o yaml

Statistics

The statistics are available on port 1936 (or the value of "STATS_PORT" environment variable declared in the router configuration). See Query above. The user name is "admin" (or the value of "STATS_USERNAME" environment variable). The password is the value of the "STATS_PASSWORD" environment variable.

curl -u admin -p http://localhost:1936

Liveness Probe

curl http://localhost:1936/healthz
 
<html><body><h1>200 OK</h1>
Service ready.
</body></html>

Routing Pod Configuration

The routing pod environment variables are controlled by the "router" deployment configuration in the "default" project:

oc get -o yaml dc/router -n default

Environment variables values can be changed with "oc env":

oc env dc/router ROUTER_EXTERNAL_HOST_INSECURE=true