Skip to content

Commit 2d53db9

Browse files
committed
Update CRC release and docs accordingly
1 parent ec1eca1 commit 2d53db9

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

docs/All-in-One-Playground-Usage-Guide.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The playground supports both standard Kubernetes and OpenShift. This is configur
7575

7676
To launch the playground using OpenShift, you just need to change the value of `K8S_PROVIDER` to:
7777
* `oc`: For OpenShift v3.11 based on `oc cluster up`;
78-
* `crc`: For OpenShift v4.x based on [CodeReady Containers](https://github.com/code-ready/crc).
78+
* `crc`: For OpenShift v4.x based on [CodeReady Containers(CRC)](https://github.com/code-ready/crc).
7979

8080
Then run below command to launch the cluster:
8181
```shell
@@ -84,6 +84,28 @@ $ launch kubernetes
8484

8585
This will bring up a single node cluster running on your host machine.
8686

87+
For OpenShift v4.x based on CRC, it is recommanded to update the CRC version on a regular basis (e.g. monthly), so that you can always get the latest version of OpenShift.
88+
89+
To specify the CRC version, use `CRC_VERSION` environment variable. To know what the CRC version is currently being used by the playground, run `launch env`, e.g.:
90+
```shell
91+
$ launch env
92+
Targets to be launched: [env]
93+
####################################
94+
# Launch target env...
95+
####################################
96+
Common:
97+
LAB_HOME : /Users/morningspace/lab-k8s-playground
98+
HOST_IP : 127.0.0.1
99+
K8S_PROVIDER: crc
100+
101+
Specific to crc:
102+
CRC_VERSION : 1.2.0
103+
CRC_MEMORY : 10240
104+
CRC_CPUS : 4
105+
106+
Total elapsed time: 0 seconds
107+
```
108+
87109
You can even run multiple clusters using different Kubernetes distributions on the same host machine! As an example, run below commands:
88110
```shell
89111
$ K8S_PROVIDER= launch kubernetes

install/targets/kubernetes/crc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ INSTALL_HOME=$LAB_HOME/install
77
CACHE_HOME=$INSTALL_HOME/.launch-cache
88

99
CRC_INSTALL_HOME=$HOME/.crc
10-
CRC_VERSION=${CRC_VERSION:-1.1.0}
10+
CRC_VERSION=${CRC_VERSION:-1.2.0}
1111
CRC_MEMORY=${CRC_MEMORY:-10240}
1212
CRC_CPUS=${CRC_CPUS:-4}
1313
CRC_USE_VIRTUALBOX=${CRC_USE_VIRTUALBOX:-}
@@ -160,7 +160,7 @@ function kubernetes::clean {
160160

161161
function kubernetes::env {
162162
printenv_common
163-
printenv_provider CRC_VERSION CRC_MEMORY CRC_CPUS CRC_USE_VIRTUALBOX
163+
printenv_provider CRC_VERSION CRC_MEMORY CRC_CPUS
164164
}
165165

166166
target::command $@

0 commit comments

Comments
 (0)