Skip to content

Commit

Permalink
Deployed 01a7d6274 to latest in docs/rook with MkDocs 1.6.1 and mike …
Browse files Browse the repository at this point in the history
…2.1.3
  • Loading branch information
Rook committed Oct 29, 2024
1 parent c799f27 commit c8a4962
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 85 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<a id=__codelineno-13-3 name=__codelineno-13-3></a><span class=go>rbd-pvc Bound pvc-65dc0aac-5e15-4474-90f4-7a3532c621ec 1Gi RWO csi-rbd-sc 44s</span>
</code></pre></div></td></tr></table></div> <h3 id=create-a-volume-replication-class-cr>Create a Volume Replication Class CR<a class=headerlink href=#create-a-volume-replication-class-cr title="Permanent link">&para;</a></h3> <p>In this case, we create a Volume Replication Class on cluster-1</p> <div class=highlight><table class=highlighttable><tr><td class=linenos><div class=linenodiv><pre><span></span><span class=normal><a href=#__codelineno-14-1>1</a></span></pre></div></td><td class=code><div><pre><span></span><code><a id=__codelineno-14-1 name=__codelineno-14-1></a><span class=gp>[cluster-1]$ </span>kubectl<span class=w> </span>apply<span class=w> </span>-f<span class=w> </span>deploy/examples/volume-replication-class.yaml
</code></pre></div></td></tr></table></div> <div class="admonition note"> <p class=admonition-title>Note</p> <p>The <code>schedulingInterval</code> can be specified in formats of minutes, hours or days using suffix <code>m</code>, <code>h</code> and <code>d</code> respectively. The optional schedulingStartTime can be specified using the ISO 8601 time format.</p> </div> <h3 id=create-a-volumereplication-cr>Create a VolumeReplication CR<a class=headerlink href=#create-a-volumereplication-cr title="Permanent link">&para;</a></h3> <ul> <li>Once VolumeReplicationClass is created, create a Volume Replication for the PVC which we intend to replicate to secondary cluster.</li> </ul> <div class=highlight><table class=highlighttable><tr><td class=linenos><div class=linenodiv><pre><span></span><span class=normal><a href=#__codelineno-15-1>1</a></span></pre></div></td><td class=code><div><pre><span></span><code><a id=__codelineno-15-1 name=__codelineno-15-1></a><span class=gp>[cluster-1]$ </span>kubectl<span class=w> </span>apply<span class=w> </span>-f<span class=w> </span>deploy/examples/volume-replication.yaml
</code></pre></div></td></tr></table></div> <div class="admonition note"> <p class=admonition-title>Note</p> <p><img alt=📝 class=twemoji src=https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.0.3/assets/svg/1f4dd.svg title=:memo:> <code>VolumeReplication</code> is a namespace scoped object. Thus, it should be created in the same namespace as of PVC.</p> </div> <h3 id=checking-replication-status>Checking Replication Status<a class=headerlink href=#checking-replication-status title="Permanent link">&para;</a></h3> <p><code>replicationState</code> is the state of the volume being referenced. Possible values are primary, secondary, and resync.</p> <ul> <li><code>primary</code> denotes that the volume is primary.</li> <li><code>secondary</code> denotes that the volume is secondary.</li> <li><code>resync</code> denotes that the volume needs to be resynced.</li> </ul> <p>To check VolumeReplication CR status:</p> <div class=highlight><table class=highlighttable><tr><td class=linenos><div class=linenodiv><pre><span></span><span class=normal><a href=#__codelineno-16-1>1</a></span></pre></div></td><td class=code><div><pre><span></span><code><a id=__codelineno-16-1 name=__codelineno-16-1></a><span class=gp>[cluster-1]$</span>kubectl<span class=w> </span>get<span class=w> </span>volumereplication<span class=w> </span>pvc-volumereplication<span class=w> </span>-oyaml
</code></pre></div></td></tr></table></div> <div class="admonition note"> <p class=admonition-title>Note</p> <p><img alt=📝 class=twemoji src=https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/svg/1f4dd.svg title=:memo:> <code>VolumeReplication</code> is a namespace scoped object. Thus, it should be created in the same namespace as of PVC.</p> </div> <h3 id=checking-replication-status>Checking Replication Status<a class=headerlink href=#checking-replication-status title="Permanent link">&para;</a></h3> <p><code>replicationState</code> is the state of the volume being referenced. Possible values are primary, secondary, and resync.</p> <ul> <li><code>primary</code> denotes that the volume is primary.</li> <li><code>secondary</code> denotes that the volume is secondary.</li> <li><code>resync</code> denotes that the volume needs to be resynced.</li> </ul> <p>To check VolumeReplication CR status:</p> <div class=highlight><table class=highlighttable><tr><td class=linenos><div class=linenodiv><pre><span></span><span class=normal><a href=#__codelineno-16-1>1</a></span></pre></div></td><td class=code><div><pre><span></span><code><a id=__codelineno-16-1 name=__codelineno-16-1></a><span class=gp>[cluster-1]$</span>kubectl<span class=w> </span>get<span class=w> </span>volumereplication<span class=w> </span>pvc-volumereplication<span class=w> </span>-oyaml
</code></pre></div></td></tr></table></div> <div class=highlight><table class=highlighttable><tr><td class=linenos><div class=linenodiv><pre><span></span><span class=normal><a href=#__codelineno-17-1> 1</a></span>
<span class=normal><a href=#__codelineno-17-2> 2</a></span>
<span class=normal><a href=#__codelineno-17-3> 3</a></span>
Expand Down
Loading

0 comments on commit c8a4962

Please sign in to comment.