Skip to content

Commit

Permalink
Deployed ffc48f8 to v1.13.x with MkDocs 1.5.3 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-bot committed Dec 1, 2023
1 parent d8af7ad commit cf4d322
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 89 deletions.
10 changes: 5 additions & 5 deletions v1.13.x/advance/ovn-eip-fip-snat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<span class=w> </span>type:<span class=w> </span>nat

<span class=c1># 动态分配一个 eip 资源,该资源预留用于 fip 场景</span>
</code></pre></div> <p>当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络</p> <h3 id=21-ovn-fip-pod-fip>2.1 ovn-fip 为 pod 绑定一个 fip<a class=headerlink href=#21-ovn-fip-pod-fip title="Permanent link">&para;</a></h3> <div class=highlight><pre><span></span><code><span class=c1># k get po -o wide -n vpc1 vpc-1-busybox01</span>
</code></pre></div> <p>externalSubnet 字段可不进行配置,若未配置则会使用默认公网网络,在上述配置中默认公网网络为 external204</p> <p>若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra。</p> <h3 id=21-ovn-fip-pod-fip>2.1 ovn-fip 为 pod 绑定一个 fip<a class=headerlink href=#21-ovn-fip-pod-fip title="Permanent link">&para;</a></h3> <div class=highlight><pre><span></span><code><span class=c1># k get po -o wide -n vpc1 vpc-1-busybox01</span>
NAME<span class=w> </span>READY<span class=w> </span>STATUS<span class=w> </span>RESTARTS<span class=w> </span>AGE<span class=w> </span>IP<span class=w> </span>NODE
vpc-1-busybox01<span class=w> </span><span class=m>1</span>/1<span class=w> </span>Running<span class=w> </span><span class=m>0</span><span class=w> </span>3d15h<span class=w> </span><span class=m>192</span>.168.0.2<span class=w> </span>pc-node-2

Expand Down Expand Up @@ -401,7 +401,7 @@
<span class=w> </span>ovnEip:<span class=w> </span>snat-for-subnet-in-vpc
<span class=w> </span>vpc:<span class=w> </span>vpc1
<span class=w> </span>v4IpCidr:<span class=w> </span><span class=m>192</span>.168.0.0/24<span class=w> </span><span class=c1># 该字段可以是 cidr 也可以是 ip</span>
</code></pre></div> <p>当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络</p> <h3 id=32-ovn-snat-pod-ip>3.2 ovn-snat 对应到一个 pod ip<a class=headerlink href=#32-ovn-snat-pod-ip title="Permanent link">&para;</a></h3> <p>该功能和 iptables-snat 设计和使用方式基本一致</p> <div class=highlight><pre><span></span><code><span class=c1># cat 03-pod-snat.yaml</span>
</code></pre></div> <p>若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra</p> <h3 id=32-ovn-snat-pod-ip>3.2 ovn-snat 对应到一个 pod ip<a class=headerlink href=#32-ovn-snat-pod-ip title="Permanent link">&para;</a></h3> <p>该功能和 iptables-snat 设计和使用方式基本一致</p> <div class=highlight><pre><span></span><code><span class=c1># cat 03-pod-snat.yaml</span>

---
kind:<span class=w> </span>OvnEip
Expand Down Expand Up @@ -432,7 +432,7 @@
<span class=w> </span>ovnEip:<span class=w> </span>snat-for-subnet-in-vpc
<span class=w> </span>vpc:<span class=w> </span>vpc1
<span class=w> </span>v4IpCidr:<span class=w> </span><span class=m>192</span>.168.0.4
</code></pre></div> <p>当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络</p> <p>以上资源创建后,可以看到 snat 公网功能依赖的如下资源。</p> <div class=highlight><pre><span></span><code><span class=c1># kubectl ko nbctl show vpc1</span>
</code></pre></div> <p>若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra。</p> <p>以上资源创建后,可以看到 snat 公网功能依赖的如下资源。</p> <div class=highlight><pre><span></span><code><span class=c1># kubectl ko nbctl show vpc1</span>
router<span class=w> </span>87ad06fd-71d5-4ff8-a1f0-54fa3bba1a7f<span class=w> </span><span class=o>(</span>vpc1<span class=o>)</span>
<span class=w> </span>port<span class=w> </span>vpc1-vpc1-subnet1
<span class=w> </span>mac:<span class=w> </span><span class=s2>&quot;00:00:00:ED:8E:C7&quot;</span>
Expand Down Expand Up @@ -541,7 +541,7 @@
<span class=w> </span><span class=nt>externalPort</span><span class=p>:</span><span class=w> </span><span class=s>&quot;22&quot;</span>
<span class=w> </span><span class=nt>vpc</span><span class=p>:</span><span class=w> </span><span class="l l-Scalar l-Scalar-Plain">vpc1</span>
<span class=w> </span><span class=nt>v4Ip</span><span class=p>:</span><span class=w> </span><span class="l l-Scalar l-Scalar-Plain">192.168.0.3</span>
</code></pre></div> <p>当配置了额外公网网络时,可以通过 externalSubnet 指定需要扩展使用的公网网络,在上述配置中,可选 external204 和 extra 两个公网网络</p> <p>OvnDnatRule 的配置与 IptablesDnatRule 类似</p> <div class=highlight><pre><span></span><code><span class=c1># kubectl get oeip eip-dnat</span>
</code></pre></div> <p>若要使用额外公网网络,则需要通过 externalSubnet 显式指定需要扩展使用的公网网络,在上述配置中扩展公网网络为 extra</p> <p>OvnDnatRule 的配置与 IptablesDnatRule 类似</p> <div class=highlight><pre><span></span><code><span class=c1># kubectl get oeip eip-dnat</span>
NAME<span class=w> </span>V4IP<span class=w> </span>V6IP<span class=w> </span>MAC<span class=w> </span>TYPE<span class=w> </span>READY
eip-dnat<span class=w> </span><span class=m>10</span>.5.49.4<span class=w> </span><span class=m>00</span>:00:00:4D:CE:49<span class=w> </span>dnat<span class=w> </span><span class=nb>true</span>

Expand Down Expand Up @@ -587,7 +587,7 @@
<span class=c1># kubectl get odnat eip-dnat </span>
NAME<span class=w> </span>EIP<span class=w> </span>PROTOCOL<span class=w> </span>V4EIP<span class=w> </span>V4IP<span class=w> </span>INTERNALPORT<span class=w> </span>EXTERNALPORT<span class=w> </span>IPNAME<span class=w> </span>READY
eip-dnat<span class=w> </span>eip-dnat<span class=w> </span>tcp<span class=w> </span><span class=m>10</span>.5.49.4<span class=w> </span><span class=m>192</span>.168.0.4<span class=w> </span><span class=m>22</span><span class=w> </span><span class=m>22</span><span class=w> </span>test-dnat-vip<span class=w> </span><span class=nb>true</span>
</code></pre></div> <p><a class=md-button href=https://ma.alauda.cn/p/0f39a target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M9.5 4C5.36 4 2 6.69 2 10c0 1.89 1.08 3.56 2.78 4.66L4 17l2.5-1.5c.89.31 1.87.5 2.91.5A5.22 5.22 0 0 1 9 14c0-3.31 3.13-6 7-6 .19 0 .38 0 .56.03C15.54 5.69 12.78 4 9.5 4m-3 2.5a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m5 0a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1M16 9c-3.31 0-6 2.24-6 5s2.69 5 6 5c.67 0 1.31-.08 1.91-.25L20 20l-.62-1.87C20.95 17.22 22 15.71 22 14c0-2.76-2.69-5-6-5m-2 2.5a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1Z"/></svg></span> 微信群</a> <a class=md-button href=https://communityinviter.com/apps/kube-ovn/kube-ovn/ target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M6 15a2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v5a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2 2 2 0 0 1 2-2 2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2 2 2 0 0 1-2 2H4a2 2 0 0 1-2-2 2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2 2 2 0 0 1 2 2 2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2 2 2 0 0 1-2-2V5a2 2 0 0 1 2-2 2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2 2 2 0 0 1 2-2h5a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-5Z"/></svg></span> Slack</a> <a class=md-button href=https://twitter.com/KubeOvn target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23Z"/></svg></span> Twitter</a> <a class=md-button href=https://ma.alauda.cn/p/2f53a target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="m20 8-8 5-8-5V6l8 5 8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/></svg></span> Support</a></p> <hr> <div class=md-source-file> <small> 最后更新: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年11月8日</span> <br> 创建日期: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年3月3日</span> </small> </div> <h2 id=__comments>评论</h2> <script src=https://giscus.app/client.js data-repo=kubeovn/kube-ovn data-repo-id="MDEwOlJlcG9zaXRvcnkxNzcwNjg5NjE=" data-category=Announcements data-category-id=DIC_kwDOCo3boc4CAj60 data-mapping=pathname data-reactions-enabled=1 data-emit-metadata=0 data-input-position=bottom data-theme=light data-lang=zh-CN crossorigin=anonymous async>
</code></pre></div> <p><a class=md-button href=https://ma.alauda.cn/p/0f39a target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M9.5 4C5.36 4 2 6.69 2 10c0 1.89 1.08 3.56 2.78 4.66L4 17l2.5-1.5c.89.31 1.87.5 2.91.5A5.22 5.22 0 0 1 9 14c0-3.31 3.13-6 7-6 .19 0 .38 0 .56.03C15.54 5.69 12.78 4 9.5 4m-3 2.5a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m5 0a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1M16 9c-3.31 0-6 2.24-6 5s2.69 5 6 5c.67 0 1.31-.08 1.91-.25L20 20l-.62-1.87C20.95 17.22 22 15.71 22 14c0-2.76-2.69-5-6-5m-2 2.5a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1Z"/></svg></span> 微信群</a> <a class=md-button href=https://communityinviter.com/apps/kube-ovn/kube-ovn/ target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M6 15a2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v5a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2 2 2 0 0 1 2-2 2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2 2 2 0 0 1-2 2H4a2 2 0 0 1-2-2 2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2 2 2 0 0 1 2 2 2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2 2 2 0 0 1-2-2V5a2 2 0 0 1 2-2 2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2 2 2 0 0 1 2-2h5a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-5Z"/></svg></span> Slack</a> <a class=md-button href=https://twitter.com/KubeOvn target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23Z"/></svg></span> Twitter</a> <a class=md-button href=https://ma.alauda.cn/p/2f53a target=_blank><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="m20 8-8 5-8-5V6l8 5 8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/></svg></span> Support</a></p> <hr> <div class=md-source-file> <small> 最后更新: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年12月1日</span> <br> 创建日期: <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年3月3日</span> </small> </div> <h2 id=__comments>评论</h2> <script src=https://giscus.app/client.js data-repo=kubeovn/kube-ovn data-repo-id="MDEwOlJlcG9zaXRvcnkxNzcwNjg5NjE=" data-category=Announcements data-category-id=DIC_kwDOCo3boc4CAj60 data-mapping=pathname data-reactions-enabled=1 data-emit-metadata=0 data-input-position=bottom data-theme=light data-lang=zh-CN crossorigin=anonymous async>
</script> <script>
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object")
Expand Down
Loading

0 comments on commit cf4d322

Please sign in to comment.