Set up cluster:
oc cluster up --routing-suffix=okd --base-dir=_cluster_config_dir --public-hostname=master.okd |
oc cluster up --routing-suffix=okd --base-dir=_cluster_config_dir --public-hostname=master.okd
Tear down cluster:
Change cluster settings:
vim _cluster_config_dir/kube-apiserver/admin.kubeconfig |
vim _cluster_config_dir/kube-apiserver/admin.kubeconfig
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0t
server: https://master.okd:8443
name: 127-0-0-1:8443
- cluster:
certificate-authority-data: LS0tL
server: https://master.okd:8443
name: master-okd:8443
... |
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0t
server: https://master.okd:8443
name: 127-0-0-1:8443
- cluster:
certificate-authority-data: LS0tL
server: https://master.okd:8443
name: master-okd:8443
...
and:
vim _cluster_config_dir/kube-apiserver/master-config.yaml |
vim _cluster_config_dir/kube-apiserver/master-config.yaml
...
masterPublicURL: https://master.okd:8443
...
oauthConfig:
alwaysShowProviderSelection: false
assetPublicURL: https://master.okd:8443/console/
...
masterCA: ca-bundle.crt
masterPublicURL: https://master.okd:8443
masterURL: https://master.okd:8443
... |
...
masterPublicURL: https://master.okd:8443
...
oauthConfig:
alwaysShowProviderSelection: false
assetPublicURL: https://master.okd:8443/console/
...
masterCA: ca-bundle.crt
masterPublicURL: https://master.okd:8443
masterURL: https://master.okd:8443
...
Start up cluster again:
oc cluster up --routing-suffix=okd --base-dir=_cluster_config_dir --public-hostname=master.okd
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Creating shared mount directory on the remote host ...
Determining server IP ...
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
...
...skipping...
The server is accessible via web console at:
https://master.okd:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin |
oc cluster up --routing-suffix=okd --base-dir=_cluster_config_dir --public-hostname=master.okd
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Creating shared mount directory on the remote host ...
Determining server IP ...
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
...
...skipping...
The server is accessible via web console at:
https://master.okd:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin