...
Select Local and select your OS and x86_64 and click the Download OpenShift Local.
Image Removed
Once downloaded, run the package.
Image Removed
Image RemovedImage RemovedImage RemovedImage RemovedImage RemovedImage Removed
Install OC Client
Setup
Image Removed
Config
Configure
...
Version 2.33.0
https://mirror.openshift.com/pub/openshift-v4/clients/crc/2.33.0/
https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.33.0/crc-macos-installer.pkg
"crcVersion": "2.33.0",
"gitSha": "c43b17",
"openshiftVersion": "4.14.12",
"podmanVersion": "4.4.4"
Latest:
https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/crc-macos-installer.pkg
Image Added
Once downloaded, run the package.
Image Added
Image AddedImage AddedImage AddedImage AddedImage AddedImage Added
Install OC Client
...
Configure
Set configuration:
Code Block |
---|
|
config set cpus 6
crc config getset cpus 10
crc config set memory 1600030000
crc config get memory
crc config set disk-size 120
crc config get disk-size
|
Changes made while the cluster is running will require a restart before the changes are applied.
Verify configuration:
Code Block |
---|
Code Block |
---|
|
crc stop
crc start
|
For a full list of configuration parameters issue the following command:
Code Block |
---|
- consent-telemetry : no
- cpus |
Code Block |
---|
Modifies crc configuration properties.
Properties:
* bundle Bundle path/URI - absolute or local path, http, https or docker URI (string, like 'https://foo.com/crc_vfkit_4.16.7_arm64.crcbundle', 'docker://quay.io/myorg/crc_vfkit_4.16.7_arm64.crcbundle:2.41.0' default '/Users/john/.crc/cache/crc_vfkit_4.16.7_arm64.crcbundle' )
* consent-telemetry: 10
- disk-size : 120
- host-network-access Consent to collection of anonymous usage data (yes/no)
* cpus : true
- memory Number of CPU cores (must : 30000 |
For a full list of configuration parameters issue the following command:
Code Block |
---|
Modifies crc configuration properties.
Properties:
* bundlebe greater than or equal to '4')
* disable-update-check Disable update check (true/false, default: false)
* disk-size Bundle path/URI - absolute or local path, http, https or docker URI (string, Total size in GiB of the disk (must be greater than or equal to '31')
* enable-bundle-quay-fallbacklike 'https://foo.com/crc_vfkit_4.16.7_arm64.crcbundle', 'docker://quay.io/myorg/crc_vfkit_4.16.7_arm64.crcbundle:2.41.0' default '/Users/john/.crc/cache/crc_vfkit_4.16.7_arm64.crcbundle' )
* consent-telemetry If bundle downloadConsent fromto thecollection defaultof locationanonymous fails,usage fallback to quay.io (true/false, default: falsedata (yes/no)
* enable-cluster-monitoringcpus Enable cluster monitoring Operator (true/false, default: false)
* enable-emergency-login Number Enableof emergencyCPU logincores for 'core' user. Password is randomly generated. (true/false, default: false(must be greater than or equal to '4')
* enabledisable-experimental-featuresupdate-check EnableDisable experimentalupdate featurescheck (true/false, default: false)
* enabledisk-shared-dirssize Mounts host's home directory at '/' in the CRC VM (true/false, default: true)
* host-network-access Total size in GiB of the disk (must be greater than or equal to '31')
* enable-bundle-quay-fallback Allow TCP/IP connections If bundle download from the CRCdefault VMlocation tofails, servicesfallback running on the hostto quay.io (true/false, default: false)
* httpenable-cluster-proxymonitoring Enable cluster monitoring Operator (true/false, HTTP proxy URL (string, like 'http://my-proxy.com:8443')
* https-proxydefault: false)
* enable-emergency-login Enable emergency login for 'core' user. Password is randomly HTTPS proxy URL (string, like 'https://my-proxy.com:8443'generated. (true/false, default: false)
* ingressenable-httpexperimental-portfeatures Enable experimental features (true/false, default: false)
* enable-shared-dirs HTTP port to use for OpenShift ingress/routes on the host (1024-65535 Mounts host's home directory at '/' in the CRC VM (true/false, default: 80true)
* ingresshost-httpsnetwork-portaccess Allow HTTPSTCP/IP portconnections tofrom use for OpenShift ingress/routesthe CRC VM to services running on the host (1024-65535true/false, default: 443false)
* kubeadminhttp-passwordproxy User defined kubeadmin password
* memory HTTP proxy URL (string, like 'http://my-proxy.com:8443')
* https-proxy Memory size in MiB (must beHTTPS greaterproxy thanURL or equal to '10752(string, like 'https://my-proxy.com:8443')
* nameserveringress-http-port HTTP port to use for OpenShift ingress/routes IPv4on addressthe of nameserverhost (string1024-65535, like '1.1.1.1 or 8.8.8.8'default: 80)
* noingress-https-proxyport HTTPS port to use for OpenShift ingress/routes on the host Hosts(1024-65535, ipv4 addresses or CIDR which do not use a proxy (string, comma-separated list such as '127.0.0.1,192.168.100.1/24')
* persistent-volume-sizedefault: 443)
* kubeadmin-password User defined kubeadmin password
* memory Total size in GiB of the persistent volume used by the CSI driver for microshift preset Memory size in MiB (must be greater than or equal to '1510752')
* presetnameserver IPv4 address of nameserver Virtual(string, machine preset (valid values are: [openshift okd microshift]like '1.1.1.1 or 8.8.8.8')
* no-proxy-ca-file Path to an HTTPS proxy certificateHosts, authority (CA)
* pull-secret-file ipv4 addresses or CIDR which do not use a proxy (string, comma-separated list such as '127.0.0.1,192.168.100.1/24')
* persistent-volume-size Path of image pull secretTotal (downloadsize from https://console.redhat.com/openshift/create/local)
* skip-check-admin-helper-cached Skip preflight check (true/false, default: false)
* skip-check-bundle-extracted Skip preflight check (true/false, default: false)
* skip-check-crc-symlinkin GiB of the persistent volume used by the CSI driver for microshift preset (must be greater than or equal to '15')
* preset Skip preflight check (true/false, default: false)
* skip-check-daemon-launchd-plist Skip preflight check (true/false, default: false Virtual machine preset (valid values are: [openshift okd microshift])
* skipproxy-check-m1-cpuca-file Path to Skipan preflightHTTPS check (true/false, default: falseproxy certificate authority (CA)
* skippull-check-mac-versionsecret-file Path of Skipimage preflightpull checksecret (true/false, default: falsedownload from https://console.redhat.com/openshift/create/local)
* skip-check-admin-oldhelper-autostartcached Skip preflight Skip preflight check check (true/false, default: false)
* skip-check-podman-in-ocbindirbundle-extracted Skip preflight check (true/false, default: false)
* skip-check-ram -crc-symlink Skip preflight check (true/false, default: false)
* skip-check-resolverdaemon-file-permissionslaunchd-plist Skip preflight check (true/false, default: false)
* skip-check-root-userm1-cpu Skip preflight check (true/false, default: false)
* skip-check-sshmac-port version Skip preflight check (true/false, default: false)
* skip-check-supported-cpu-archold-autostart Skip preflight check (true/false, default: false)
* skip-check-vfkitpodman-in-installedocbindir Skip preflight check (true/false, default: false) |
Starting the Cluster
Once downloaded and extracted, run:
Image Removed
Grab the pull secrets form the UI by clicking the Copy pull secret link.
Image Removed
Past the pull secret to the terminal
Image RemovedImage Removed
Login
Code Block |
---|
|
oc login -u kubeadmin https://api.crc.testing:6443 |
Web Console
https://console-openshift-console.apps-crc.testing
CRC
* skip-check-ram Skip preflight check (true/false, default: false)
* skip-check-resolver-file-permissions Skip preflight check (true/false, default: false)
* skip-check-root-user Skip preflight check (true/false, default: false)
* skip-check-ssh-port Skip preflight check (true/false, default: false)
* skip-check-supported-cpu-arch Skip preflight check (true/false, default: false)
* skip-check-vfkit-installed Skip preflight check (true/false, default: false) |
Changes made while the cluster is running will require a restart before the changes are applied.
Code Block |
---|
|
crc stop
crc start
|
Some changes will require a cleanup and re-setup.
Code Block |
---|
|
crc cleanup
crc setup
|
Setup
Image Added
Starting the Cluster
Once downloaded and extracted, run:
Image Added
Grab the pull secrets form the UI by clicking the Copy pull secret link.
Image Added
Past the pull secret to the terminal
Image AddedImage Added
Login
Code Block |
---|
|
oc login -u kubeadmin https://api.crc.testing:6443 |
Web Console
Open the console using crc or by going to https://console-openshift-console.apps-crc.testing
CRC
- Code Ready Containers
Code Block |
---|
CRC is a tool that manages a local OpenShift 4.x cluster optimized for testing and development purposes
Usage:
crc [flags]
crc [command]
Available Commands:
bundle Manage CRC bundles
cleanup Undo config changes
completion Generate the autocompletion script for the specified shell
config Modify crc configuration
console Open the OpenShift Web Console in the default browser
delete Delete the instance
help Help about any command
ip Get IP address of the running OpenShift cluster
oc-env Add the 'oc' executable to PATH
podman-env Setup podman environment
setup Set up prerequisites for using CRC
start Start the instance
status Display status of the OpenShift cluster
stop Stop the instance
version Print version information
Flags:
-h, --help help for crc
--log-level string log level (e.g. "debug | info | warn | error") (default "info") |
Helpful Commands
CRC Status
Code Block |
---|
CRC VM: Running
OpenShift: Running (v4.16.7)
RAM Usage: 7.89GB of 16.34GB
Disk Usage: 31.53GB of 128.2GB (Inside the CRC VM)
Cache Usage: 38.67GB
Cache Directory: /Users/john/.crc/cache |
CRC Configuration
Code Block |
---|
|
crc config view |
Code Block |
---|
- consent-telemetry : no
- cpus |
Code Block |
---|
CRC is a tool that manages a local OpenShift 4.x cluster optimized for testing and development purposes
Usage:
crc [flags]
crc [command]
Available Commands:
bundle Manage CRC bundles
cleanup Undo config changes
completion Generate the autocompletion script for the specified shell
config Modify crc configuration
console Open the OpenShift Web Console in the default browser
delete Delete the instance
help Help about any command
ip Get IP address of the running OpenShift cluster
oc-env Add the 'oc' executable to PATH
podman-env Setup podman environment
setup Set up prerequisites for using CRC
start Start the instance
status Display status of the OpenShift cluster
stop Stop the instance
version Print version information
Flags: 8
-h, --help disk-size help for crc
--log-level string log level (e.g. "debug | info | warn | error") (default "info") |
Helpful Commands
CRC Status
Code Block |
---|
CRC VM:: 120
- host-network-access Running
OpenShift: Running (v4.16.7)
RAM Usage:: true
- memory 7.89GB of 16.34GB
Disk Usage: 31.53GB of 128.2GB (Inside the CRC VM)
Cache Usage: 38.67GB
Cache Directory: /Users/john/.crc/cache24000 |
CRC Version
Code Block |
---|
CRC version: 2.4133.0+e6495fc43b17
OpenShift version: 4.1614.712
MicroShiftPodman version: 4.164.74 |
Delete the Cluster
...