Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Red Hat CodeReady Containers on Silverblue

Red Hat CodeReady Containers on Silverblue

Red Hat Livestreaming

March 16, 2021
Tweet

More Decks by Red Hat Livestreaming

Other Decks in Technology

Transcript

  1. CodeReadyContainers on
    CodeReadyContainers on
    Fedora Silverblue
    Fedora Silverblue
    http://gist-reveal.it/a00d84a2a250ccf8b6bfe57d04c77849

    View Slide

  2. 1. Silverblue Install
    1. Silverblue Install
    1. download an installer image:
    2. create USB (I used Fedora MediaWriter, linked on the /download
    page)
    3. disable BIOS secure boot (a required step for some hardware)
    4. boot from USB
    5. wipe partition table (or partition with /var)
    manual partitioning guide:
    6. after first login, run:
    rpm-ostree update
    systemctl reboot
    https://silverblue.fedoraproject.org/download
    https://docs.fedoraproject.org/en-
    US/fedora-silverblue/installation/#manual-partition

    View Slide

  3. 2. Silverblue Setup
    2. Silverblue Setup
    install OS-level dependency requirements:
    Add your user to the libvirtd group:
    rpm-ostree install qemu libvirt virt-manager
    sudo groupadd libvirtd
    sudo usermod -a -G libvirtd $(whoami)
    groups $(whoami)

    View Slide

  4. 3. CRC Download
    3. CRC Download
    Download latest CRC release from:
    Tip: Remember to download or copy your CRC pull secret on this
    page
    https://cloud.redhat.com/openshift/create/local

    View Slide

  5. 4. CRC Install
    4. CRC Install
    cd ~/Downloads && tar xvJf ./crc-*.xz
    mkdir -p ~/bin
    mv ./crc-linux-1.23.1-amd64/crc ~/bin

    View Slide

  6. 5. CRC Setup
    5. CRC Setup
    crc setup

    View Slide

  7. 6. CRC Startup
    6. CRC Startup
    if you don't include the -p flag, you'll need to interactively paste the
    pull secret during VM initialization
    Tip: make sure to note the admin credentials in the log output!
    crc start -p ~/Downloads/pull_secret

    View Slide

  8. Access the resulting web console with:
    (proceed through a short series of SSL warnings... 1,2,3)
    crc console

    View Slide

  9. 7. Follow-up Tasks
    7. Follow-up Tasks
    1. Visit the embedded OperatorHub service directory. Try installing
    an operator to enable professionally-maintained cloud service
    solutions on your cluster. After installation via Hub (by a cluster
    admin), operator-backed solutions will available for use by
    standard developers
    2. Add additional user accounts, login as a normal (non-admin)
    user, then - try building and deploying a basic application

    View Slide

  10. 8. Cleanup
    8. Cleanup
    When you're done having fun:
    Halt the VM with: crc stop
    Remove the VM entirely (reclaim disk space): crc delete

    View Slide

  11. http://gist-reveal.it/a00d84a2a250ccf8b6bfe57d04c77849

    View Slide