CRC – OpenShift 4

OCP3.x用MiniShift来搭建一个简单的本地OpenShift集群,CRC (Red Hat CodeReady Containers)是给4.x准备的。

Intall

Download page

Extract tar.xz and place in $path (~/.bash_profile)
$crc setup
$crs start

“Image pull secret” is required for the installation, it can be got / copied from Download page

成功后会有如下提示信息:

INFO To access the cluster, first set up your environment by following ‘crc oc-env’ instructions 
INFO Then you can access it by running ‘oc login -u developer -p developer https://api.crc.testing:6443’ 
INFO To login as an admin, run ‘oc login -u kubeadmin -p 8rynV-SeYLc-h8Ij7-YPYcz https://api.crc.testing:6443’                                               
INFO You can now run ‘crc console’ and use these credentials to access the OpenShift web console 
Started the OpenShift cluster

$crc oc-env
$eval $(crc oc-env)
$oc login -u developer -p developer https://api.crc.testing:6443
$oc login -u kubeadmin -p 8rynV-SeYLc-h8Ij7-YPYcz https://api.crc.testing:6443

ODO

$curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o /usr/local/bin/odo
$chmod +x /usr/local/bin/odo
Install guide

Use CRC

Guide

标签:

发表评论