Difference between revisions of "OpenShift 4 CodeReady Containers"

From Dogtag
Jump to: navigation, search
(Created page with "= Installing OpenShift = Download the CodeReady Containers: <pre> $ wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz $ tar xvf cr...")
 
m (Starting OpenShift Console)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Installing OpenShift =
+
= Installing OpenShift Cluster =
  
 
Download the CodeReady Containers:
 
Download the CodeReady Containers:
Line 16: Line 16:
 
<pre>
 
<pre>
 
$ ./crc start
 
$ ./crc start
 +
</pre>
 +
 +
= Authentication =
 +
 +
To display access credentials:
 +
 +
<pre>
 +
$ ./crc console --credentials
 +
</pre>
 +
 +
To authenticate as developer:
 +
 +
<pre>
 +
$ oc login -u developer -p developer https://api.crc.testing:6443
 +
</pre>
 +
 +
To authenticate as kubeadmin:
 +
 +
<pre>
 +
$ oc login -u kubeadmin -p <password> https://api.crc.testing:6443
 
</pre>
 
</pre>
  
Line 22: Line 42:
 
<pre>
 
<pre>
 
$ ./crc console
 
$ ./crc console
 +
</pre>
 +
 +
= Stopping OpenShift Cluster =
 +
 +
<pre>
 +
$ ./crc stop
 +
</pre>
 +
 +
= Removing OpenShift Cluster =
 +
 +
<pre>
 +
$ ./crc delete
 
</pre>
 
</pre>
  

Revision as of 02:38, 14 January 2020

Installing OpenShift Cluster

Download the CodeReady Containers:

$ wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
$ tar xvf crc-linux-amd64.tar.xz
$ cd crc-linux-1.3.0-amd64
$ ./crc setup

See also Install on Laptop: Red Hat CodeReady Containers.

Starting OpenShift Cluster

$ ./crc start

Authentication

To display access credentials:

$ ./crc console --credentials

To authenticate as developer:

$ oc login -u developer -p developer https://api.crc.testing:6443

To authenticate as kubeadmin:

$ oc login -u kubeadmin -p <password> https://api.crc.testing:6443

Starting OpenShift Console

$ ./crc console

Stopping OpenShift Cluster

$ ./crc stop

Removing OpenShift Cluster

$ ./crc delete

See Also