...
Setup
Image Removed
Config
Configure
...
Configure
Set configuration:
...
Code Block |
---|
|
crc config set cpus 610
crc config getset cpusmemory 30000
crc config set memorydisk-size 16000120
crc config get memory
crc config set disk-size 120
crc config get disk-size
host-network-access true |
Verify configuration:Changes made while the cluster is running will require a restart before the changes are applied.
Code Block |
---|
|
crc stop
crc start
|
For a full list of configuration parameters issue the following command:
Code Block |
---|
- consent-telemetry |
Code Block |
---|
Modifies crc configuration properties.
Properties:
* bundle : no
- cpus 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 Consent to collection of anonymous usage data (yes/no)
* cpus: 120
- host-network-access : true
- memory Number of CPU cores (must be greater than or equal to '4')
* disable-update-check : 30000 |
For a full list of configuration parameters issue the following command:
Code Block |
---|
Modifies crc Disable update check (true/false, default: false)
* disk-sizeconfiguration properties.
Properties:
* bundle Total size in GiBBundle ofpath/URI the disk (must be greater than or equal to '31')
* enable-bundle-quay-fallback If bundle download from the default location fails, fallback to quay.io (true/false, default: false)
* enable-cluster-monitoring- 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 Enable cluster monitoring Operator (true/false, default: false)
* enable-emergency-login Consent to collection of anonymous usage data (yes/no)
* cpus Enable emergency login for 'core' user. Password is randomly generated. (true/false, default: false)
* enable-experimental-features Enable experimental features (true/false, default: false)
* enable-shared-dirs Number of CPU cores (must be greater than or equal to '4')
* disable-update-check Mounts host's home directory at '/' in theDisable CRCupdate VMcheck (true/false, default: truefalse)
* host-network-accessdisk-size Allow TCP/IP connections from the CRC VMTotal tosize servicesin runningGiB onof the hostdisk (true/false, default: falsemust be greater than or equal to '31')
* http-proxyenable-bundle-quay-fallback If bundle download from the default location fails, fallback to HTTP proxy URL (string, like 'http://my-proxy.com:8443'quay.io (true/false, default: false)
* httpsenable-cluster-proxymonitoring Enable cluster monitoring HTTPS proxy URL (string, like 'https://my-proxy.com:8443'Operator (true/false, default: false)
* ingressenable-httpemergency-portlogin Enable emergency login for 'core' HTTPuser. portPassword tois userandomly for OpenShift ingress/routes on the host (1024-65535generated. (true/false, default: 80false)
* ingressenable-httpsexperimental-portfeatures Enable experimental features (true/false, default: false)
* enable-shared-dirs HTTPS port to use for OpenShift ingress/routes on the host (1024-65535, default: 443)
* kubeadmin-password Mounts host's home directory at '/' in the CRC VM (true/false, default: true)
* host-network-access User defined kubeadmin password
* memory Allow TCP/IP connections from the CRC VM to services running on the Memory size in MiB (must be greater than or equal to '10752'host (true/false, default: false)
* nameserverhttp-proxy IPv4HTTP addressproxy ofURL nameserver ((string, like '1.1.1.1 or 8.8.8.8http://my-proxy.com:8443')
* nohttps-proxy HTTPS proxy URL Hosts(string, 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-sizelike 'https://my-proxy.com:8443')
* ingress-http-port HTTP port to use for OpenShift ingress/routes on Totalthe size in GiB of the persistent volume used by the CSI driver for microshift preset (must be greater than or equal to '15')
* preset host (1024-65535, default: 80)
* ingress-https-port HTTPS port to use for OpenShift ingress/routes on the host (1024-65535, default: 443)
* kubeadmin-password Virtual machineUser presetdefined (valid values are: [openshift okd microshift])
* proxy-ca-filekubeadmin password
* memory Path to an HTTPSMemory proxysize certificatein authorityMiB (CA)
* pull-secret-file must be greater than or equal to '10752')
* nameserver Path of image pull secret (download from https://console.redhat.com/openshift/create/local)
* skip-check-admin-helper-cached IPv4 address Skipof preflight checknameserver (true/falsestring, default: false like '1.1.1.1 or 8.8.8.8')
* skip-check-bundle-extractedno-proxy Skip preflight check (true/false, default: false)
* skip-check-crc-symlink Hosts, ipv4 addresses or SkipCIDR preflightwhich check (true/false, default: false)
* skip-check-daemon-launchd-plist Skip preflight check (true/false, default: false)
* skip-check-m1-cpudo not use a proxy (string, comma-separated list such as '127.0.0.1,192.168.100.1/24')
* persistent-volume-size Total size in GiB of Skipthe preflightpersistent check (true/false, default: false)
* skip-check-mac-version Skip preflight check (true/false, default: false)
* skip-check-old-autostartvolume 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-podman-in-ocbindir Virtual machine preset (valid Skipvalues preflightare: check (true/false, default: false[openshift okd microshift])
* skipproxy-checkca-ramfile Skip preflightPath check (true/false, default: falseto an HTTPS proxy certificate authority (CA)
* skippull-checksecret-resolver-file-permissions Skip preflight check (true/false, default: false)
* skip-check-root-user Path of Skipimage preflightpull checksecret (true/false, default: falsedownload from https://console.redhat.com/openshift/create/local)
* skip-check-ssh-port admin-helper-cached Skip preflight check (true/false, default: false)
* skip-check-supported-cpu-archbundle-extracted Skip preflight check (true/false, default: false)
* skip-check-vfkit-installedcrc-symlink 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-daemon-launchd-plist Skip preflight check (true/false, default: false)
* skip-check-m1-cpu Skip preflight check (true/false, default: false)
* skip-check-mac-version Skip preflight check (true/false, default: false)
* skip-check-old-autostart Skip preflight check (true/false, default: false)
* skip-check-podman-in-ocbindir Skip preflight check (true/false, default: false)
* 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 : 8
- disk-size |
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:: 120
- host-network-access Running
OpenShift: true
- memory 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/cache24000 |
CRC Version
Code Block |
---|
CRC version: 2.4133.0+e6495fc43b17
OpenShift version: 4.1614.712
MicroShiftPodman version: 4.164.74 |
Delete the Cluster
...