diff --git a/Documentation/branch.liquid b/Documentation/branch.liquid new file mode 100644 index 000000000..49f8f96b1 --- /dev/null +++ b/Documentation/branch.liquid @@ -0,0 +1,7 @@ +{% assign url = page.url | split: '/' %} +{% assign currentVersion = url[3] %} +{% if currentVersion != 'master' %} +{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %} +{% else %} +{% assign branchName = currentVersion %} +{% endif %} diff --git a/Documentation/cassandra.md b/Documentation/cassandra.md index 84ce257fe..80714c056 100644 --- a/Documentation/cassandra.md +++ b/Documentation/cassandra.md @@ -3,6 +3,7 @@ title: Cassandra weight: 250 indent: true --- +{% include_relative branch.liquid %} # Cassandra Quickstart @@ -20,6 +21,7 @@ To make sure you have a Kubernetes cluster that is ready for `Rook`, you can [fo First deploy the Rook Cassandra Operator using the following commands: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/cassandra kubectl apply -f operator.yaml ``` diff --git a/Documentation/ceph-monitoring.md b/Documentation/ceph-monitoring.md index bdb4cd670..9cc02da80 100644 --- a/Documentation/ceph-monitoring.md +++ b/Documentation/ceph-monitoring.md @@ -3,6 +3,7 @@ title: Monitoring weight: 2500 indent: true --- +{% include_relative branch.liquid %} # Monitoring @@ -37,6 +38,7 @@ With the Prometheus operator running, we can create a service monitor that will From the root of your locally cloned Rook repo, go the monitoring directory: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/ceph/monitoring ``` diff --git a/Documentation/ceph-quickstart.md b/Documentation/ceph-quickstart.md index f7a3c47f0..ee48d47fc 100644 --- a/Documentation/ceph-quickstart.md +++ b/Documentation/ceph-quickstart.md @@ -3,13 +3,9 @@ title: Ceph Storage weight: 300 indent: true --- -{% assign url = page.url | split: '/' %} -{% assign currentVersion = url[3] %} -{% if currentVersion != 'master' %} -{% assign branchName = currentVersion | replace: 'v', '' | prepend: 'release-' %} -{% else %} -{% assign branchName = currentVersion %} -{% endif %} + +{% include_relative branch.liquid %} + # Ceph Storage Quickstart @@ -31,6 +27,7 @@ If you are using `dataDirHostPath` to persist rook data on kubernetes hosts, mak If you're feeling lucky, a simple Rook cluster can be created with the following kubectl commands and [example yaml files](https://github.com/rook/rook/blob/{{ branchName }}/cluster/examples/kubernetes/ceph). For the more detailed install, skip to the next section to [deploy the Rook operator](#deploy-the-rook-operator). ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/ceph kubectl create -f common.yaml kubectl create -f operator.yaml diff --git a/Documentation/cockroachdb.md b/Documentation/cockroachdb.md index db9cca0c5..3cf654851 100644 --- a/Documentation/cockroachdb.md +++ b/Documentation/cockroachdb.md @@ -3,6 +3,7 @@ title: CockroachDB weight: 500 indent: true --- +{% include_relative branch.liquid %} # CockroachDB Quickstart @@ -19,6 +20,7 @@ To make sure you have a Kubernetes cluster that is ready for `Rook`, you can [fo First deploy the Rook CockroachDB operator using the following commands: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/cockroachdb kubectl create -f operator.yaml ``` diff --git a/Documentation/edgefs-csi.md b/Documentation/edgefs-csi.md index f294397b9..90cb0f150 100644 --- a/Documentation/edgefs-csi.md +++ b/Documentation/edgefs-csi.md @@ -3,6 +3,7 @@ title: CSI driver weight: 4700 indent: true --- +{% include_relative branch.liquid %} # EdgeFS Rook integrated CSI driver, provisioner, attacher and snapshotter @@ -105,6 +106,7 @@ By using `k8sEdgefsNamespaces` and `k8sEdgefsMgmtPrefix` parameters, driver is c Check configuration options and create kubernetes secret for Edgefs CSI NFS plugin ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/edgefs/csi/nfs kubectl create secret generic edgefs-nfs-csi-driver-config --from-file=./edgefs-nfs-csi-driver-config.yaml ``` diff --git a/Documentation/edgefs-monitoring.md b/Documentation/edgefs-monitoring.md index 3a4fee970..7b2e3a52c 100644 --- a/Documentation/edgefs-monitoring.md +++ b/Documentation/edgefs-monitoring.md @@ -4,6 +4,8 @@ weight: 4800 indent: true --- +{% include_relative branch.liquid %} + # EdgeFS Monitoring Each Rook EdgeFS cluster has some built in metrics collectors/exporters for monitoring with [Prometheus](https://prometheus.io/). @@ -34,6 +36,7 @@ With the Prometheus operator running, we can create a service monitor that will From the root of your locally cloned Rook repo, go the monitoring directory: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/edgefs/monitoring ``` diff --git a/Documentation/edgefs-quickstart.md b/Documentation/edgefs-quickstart.md index bbb257ae0..bee03264c 100644 --- a/Documentation/edgefs-quickstart.md +++ b/Documentation/edgefs-quickstart.md @@ -4,6 +4,8 @@ weight: 550 indent: true --- +{% include_relative branch.liquid %} + # EdgeFS Geo-Transparent Storage Quickstart This guide will walk you through the basic setup of a EdgeFS cluster namespaces and enable you to consume S3 object, NFS file access, and iSCSI block storage @@ -44,6 +46,7 @@ To turn off this node adjustment need to enable `skipHostPrepare` option in clus If you're feeling lucky, a simple EdgeFS Rook cluster can be created with the following kubectl commands. For the more detailed install, skip to the next section to [deploy the Rook operator](#deploy-the-rook-operator). ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/edgefs kubectl create -f operator.yaml kubectl create -f cluster.yaml diff --git a/Documentation/minio-object-store.md b/Documentation/minio-object-store.md index 45019ac96..13365b11a 100644 --- a/Documentation/minio-object-store.md +++ b/Documentation/minio-object-store.md @@ -4,6 +4,8 @@ weight: 600 indent: true --- +{% include_relative branch.liquid %} + # Minio Object Store Quickstart Minio is a high performance distributed object storage server, designed for @@ -20,6 +22,7 @@ To make sure you have a Kubernetes cluster that is ready for `Rook`, you can [fo First deploy the Rook Minio operator using the following commands: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/minio kubectl create -f operator.yaml ``` diff --git a/Documentation/nfs.md b/Documentation/nfs.md index 59b68084d..9c2bcd49a 100644 --- a/Documentation/nfs.md +++ b/Documentation/nfs.md @@ -3,6 +3,7 @@ title: Network Filesystem (NFS) weight: 800 indent: true --- +{% include_relative branch.liquid %} # Network Filesystem (NFS) @@ -22,6 +23,7 @@ You can read further about the details and limitations of these volumes in the [ First deploy the Rook NFS operator using the following commands: ```console +git clone --single-branch --branch {{ branchName }} https://github.com/rook/rook.git cd cluster/examples/kubernetes/nfs kubectl create -f operator.yaml ```