oc label nodes master-0 node=node0 zone=zoneA --overwrite
oc label nodes master-1 node=node1 zone=zoneB --overwrite
oc label nodes master-2 node=node2 zone=zoneC --overwrite
+--------+ +--------+ +--------+
This guide outlines how to set up an external Ceph cluster using the ROOK operator in a CRC (CodeReady Containers) or SNO (Single Node OpenShift) environment. The instructions assume you're using the install_yamls project and openstack-ceph scripts for development tools.
The setup involves 2 nodes:
crc
environment that can be replaced by a SNO
spec: | |
extraMounts: | |
- name: v1 | |
region: r1 | |
extraVol: | |
- propagation: | |
- CinderVolume | |
- CinderBackup | |
- GlanceAPI | |
- ManilaShare |
#!/bin/bash | |
set -x | |
REF_REPO="glance-operator" | |
PR_NUMBER="329" | |
DEPENDS_ON=$(curl -s -X GET -H \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ |
#!/bin/bash | |
TIME=5 | |
STORAGE_NETWORK=${STORAGE_NETWORK:-"172.17.3.0/24"} | |
cat <<EOF>rgw_spec | |
--- | |
service_type: rgw | |
service_id: rgw | |
service_name: rgw.rgw |
[[local|localrc]] | |
ADMIN_PASSWORD=secret | |
######## | |
# CEPH # | |
######## | |
CEPH_GIT_URL=https://review.opendev.org/openstack/devstack-plugin-ceph | |
enable_plugin devstack-plugin-ceph $CEPH_GIT_URL |
## OLM PATTERN | |
Prereq: | |
* Login to quay.io | |
* Export USER and IMG | |
e.g. | |
> env | grep USE |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
$tripleo_standalone = <<-'SCRIPT' | |
set -euxo pipefail | |
wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
sudo tar -xJvf crc-linux-amd64.tar.xz
sudo mv crc-linux-1.22.0-amd64/crc /usr/local/bin/
sudo tar zxf openshift-client-linux.tar.gz -C /usr/local/bin/