1
0
mirror of https://github.com/openshift/openshift-ansible-contrib.git synced 2026-02-05 09:45:58 +01:00

Set a consistent API/UI endpoint

Instead of it being the first master hostname in the single-master
scenario or the first load balancer mostname in multi-master, the
sample cluster will always have the following entrypoint by default:

https://console.{{env_id}}.{{public_dns_domain}}:8443

That will simplify the documentation and be easier to look up and
understand for the newcomers trying it out.
This commit is contained in:
Tomas Sedovic
2017-10-18 15:17:06 +02:00
parent 33bd7dbd63
commit e49d2a3865
3 changed files with 7 additions and 7 deletions

View File

@@ -23,13 +23,13 @@ function restore_dns {
trap restore_dns EXIT
mkdir -p bin
scp -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" openshift@master-0.$ENV_ID.example.com:/usr/bin/oc bin/
scp -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" openshift@console.$ENV_ID.example.com:/usr/bin/oc bin/
ls -alh bin
export PATH="$PWD/bin:$PATH"
ENV_ID="openshift-$TRAVIS_BUILD_NUMBER"
oc login --insecure-skip-tls-verify=true https://master-0.$ENV_ID.example.com:8443 -u test -p password
oc login --insecure-skip-tls-verify=true https://console.$ENV_ID.example.com:8443 -u test -p password
oc new-project test
oc new-app --template=cakephp-mysql-example

View File

@@ -108,7 +108,7 @@ Either way, find the `oc` binary and put it in your `PATH`.
```
oc login --insecure-skip-tls-verify=true https://master-0.openshift.example.com:8443 -u user -p password
oc login --insecure-skip-tls-verify=true https://console.openshift.example.com:8443 -u user -p password
oc new-project test
oc new-app --template=cakephp-mysql-example
oc status -v
@@ -122,7 +122,7 @@ Wait until the build has finished and both pods are deployed and running:
```
$ oc status -v
In project test on server https://master-0.openshift.example.com:8443
In project test on server https://console.openshift.example.com:8443
http://cakephp-mysql-example-test.apps.openshift.example.com (svc/cakephp-mysql-example)
dc/cakephp-mysql-example deploys istag/cakephp-mysql-example:latest <-
@@ -153,7 +153,7 @@ Its `title` should say: "Welcome to OpenShift".
You can also access the OpenShift cluster with a web browser by going to:
https://master-0.openshift.example.com:8443
https://console.openshift.example.com:8443
Note that for this to work, the OpenShift nodes must be accessible
from your computer and it's DNS configuration must use the cruster's

View File

@@ -5,8 +5,8 @@ openshift_deployment_type: origin
openshift_master_default_subdomain: "apps.{{ env_id }}.{{ public_dns_domain }}"
openshift_master_cluster_method: native
openshift_master_cluster_hostname: "{{ groups.lb.0|default(groups.masters.0) }}"
openshift_master_cluster_public_hostname: "{{ groups.lb.0|default(groups.masters.0) }}"
openshift_master_cluster_public_hostname: "console.{{ env_id }}.{{ public_dns_domain }}"
openshift_master_cluster_hostname: "{{ openshift_master_cluster_public_hostname }}"
osm_default_node_selector: 'region=primary'