This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Version 7.0 | |
| <# | |
| .SYNOPSIS | |
| A PowerShell script to initialize and run a CRC (CodeReady Containers) VM using macadam on Windows. | |
| This script is a translation of the original bash script 'run-with-macadam.sh'. | |
| #> | |
| # --- Script Configuration --- | |
| $ErrorActionPreference = 'Stop' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -xeuo pipefail | |
| PASS_DEVELOPER="${PASS_DEVELOPER:-P@ssd3v3loper}" | |
| PASS_KUBEADMIN="${PASS_DEVELOPER:-P@sskub3admin}" | |
| CRC_BUNDLE_PATH="${CRC_BUNDLE_PATH:-$HOME/Downloads/crc_vfkit_4.19.3_arm64.crcbundle}" | |
| SSH="ssh -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i ${PUB_KEY_PATH%.*}" | |
| SCP="scp -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i ${PUB_KEY_PATH%.*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| PASS_DEVELOPER="${PASS_DEVELOPER:-P@ssd3v3loper}" | |
| PASS_KUBEADMIN="${PASS_DEVELOPER:-P@sskub3admin}" | |
| CRC_BUNDLE_PATH="${CRC_BUNDLE_PATH:-$HOME/.crc/cache/crc_libvirt_4.19.0_amd64.crcbundle}" | |
| SSH="ssh -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i ${PUB_KEY_PATH%.*}" | |
| SCP="scp -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i ${PUB_KEY_PATH%.*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "os" | |
| "strconv" | |
| "sync" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: testpvc-claim | |
| namespace: testpvc | |
| spec: | |
| accessModes: | |
| - ReadWriteMany | |
| resources: | |
| requests: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ❯ ./crc start --log-level debug -p /tmp/pull-secret | |
| DEBU CRC version: 2.13.1+72187d13 | |
| DEBU OpenShift version: 4.12.1 | |
| DEBU Podman version: 4.3.1 | |
| DEBU Running 'crc start' | |
| DEBU Total memory of system is 34359738368 bytes | |
| DEBU Unable to find out if a new version is available: Get "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/release-info.json": x509: certificate has expired or is not yet valid: “access.redhat.com” certificate is expired | |
| DEBU Checking file: /Users/anjan/.crc/machines/crc/.crc-exist | |
| INFO Checking if running as non-root | |
| INFO Checking if crc-admin-helper executable is cached |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INFO Kubelet client certificate has expired, renewing it... [will take up to 8 minutes] | |
| DEBU retry loop: attempt 0 | |
| DEBU Waiting for availability of resource type 'csr' | |
| DEBU retry loop: attempt 0 | |
| DEBU Running SSH command: timeout 5s oc get csr --context admin --cluster crc --kubeconfig /opt/kubeconfig | |
| DEBU SSH command results: err: Process exited with status 1, output: | |
| DEBU The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port? | |
| DEBU error: Temporary error: ssh command error: | |
| command : timeout 5s oc get csr --context admin --cluster crc --kubeconfig /opt/kubeconfig | |
| err : Process exited with status 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| labels: | |
| app.kubernetes.io/component: storage | |
| app.kubernetes.io/managed-by: hostpath-provisioner-operator | |
| app.kubernetes.io/part-of: hyperconverged-cluster | |
| app.kubernetes.io/version: 4.11.0 | |
| k8s-app: hostpath-provisioner | |
| prometheus.hostpathprovisioner.kubevirt.io: "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Uncaught Exception: | |
| Error [ERR_REQUIRE_ESM]: require() of ES Module /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/node_modules/got/dist/source/index.js from /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js not supported. | |
| Instead change the require of index.js in /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js to a dynamic import() which is available in all CommonJS modules. | |
| at c._load (node:electron/js2c/asar_bundle:5:13339) | |
| at Object.<anonymous> (/private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js:4:13) | |
| at c._load (node:electron/js2c/asar_bundle:5:13339) | |
| at Object.<anonymous> (/private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/main.js:31:21) | |
| at c._load (node:electron/js2c/asar_bundle:5:13339) | |
| at Object.<anonymous> (node:electron/js2c/browser_init:189 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ crc start --log-level debug | |
| DEBU CRC version: 2.6.0.999+2686dd6e | |
| DEBU OpenShift version: 4.11.0-0.okd-2022-07-29-154152 | |
| DEBU Podman version: 4.1.1 | |
| DEBU Running 'crc start' | |
| DEBU Total memory of system is 14139076608 bytes | |
| DEBU Unable to find out if a new version is available: Invalid Semantic Version | |
| DEBU Checking file: /home/anjan/.crc/machines/crc/.crc-exist | |
| DEBU Found binary path at /home/anjan/.crc/bin/crc-driver-libvirt | |
| DEBU Launching plugin server for driver libvirt |
NewerOlder