Skip to content

Commit

Permalink
Deployed 9f3dddd to v1.12.x with MkDocs 1.5.2 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-bot committed Aug 8, 2023
1 parent 5b1be9d commit 0ccd29f
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 41 deletions.
16 changes: 8 additions & 8 deletions v1.12.x/advance/ovn-eip-fip-snat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<span class=w> </span>-<span class=w> </span>--external-gateway-switch<span class=o>=</span>external204<span class=w> </span>

<span class=c1>### 以上配置都和下面的公网网络配置 vlan id 和资源名保持一致,目前仅支持指定一个 underlay 公网作为默认外部公网。</span>
</code></pre></div> <p>该配置项的设计和使用主要考虑了如下因素:</p> <ul> <li>基于该配置项可以对接到 provider network,vlan,subnet 的资源。</li> <li>基于该配置项可以将默认 vpc enable_eip_snat 功能对接到已有的 vlan,subnet 资源,同时支持公网 ip 的 ipam。</li> <li>如果仅使用默认 vpc 的 enable_eip_snat 模式, 且仅使用旧的基于 pod annotaion 的 eip fip snat,那么这个配置无需配置。</li> <li>基于该配置可以不使用默认 vpc enable_eip_snat 流程,仅通过对应到 vlan,subnet 流程,可以兼容仅自定义 vpc 使用 eip snat 的使用场景。</li> </ul> <h3 id=11-underlay>1.1 准备 underlay 公网网络<a class=headerlink href=#11-underlay title="Permanent link">&para;</a></h3> <div class=highlight><pre><span></span><code><span class=c1># 准备 provider-network, vlan, subnet</span>
</code></pre></div> <p>该配置项的设计和使用主要考虑了如下因素:</p> <ul> <li>基于该配置项可以对接到 provider network,vlan,subnet 的资源。</li> <li>基于该配置项可以将默认 vpc enable_eip_snat 功能对接到已有的 vlan,subnet 资源,同时支持公网 ip 的 ipam。</li> <li>如果仅使用默认 vpc 的 enable_eip_snat 模式, 且仅使用旧的基于 pod annotaion 的 fip snat,那么这个配置无需配置。</li> <li>基于该配置可以不使用默认 vpc enable_eip_snat 流程,仅通过对应到 vlan,subnet 流程,可以兼容仅自定义 vpc 使用 eip snat 的使用场景。</li> </ul> <h3 id=11-underlay>1.1 准备 underlay 公网网络<a class=headerlink href=#11-underlay title="Permanent link">&para;</a></h3> <div class=highlight><pre><span></span><code><span class=c1># 准备 provider-network, vlan, subnet</span>
<span class=c1># cat 01-provider-network.yaml</span>
apiVersion:<span class=w> </span>kubeovn.io/v1
kind:<span class=w> </span>ProviderNetwork
Expand Down Expand Up @@ -120,14 +120,14 @@
Route<span class=w> </span>Table<span class=w> </span>&lt;main&gt;:
<span class=w> </span><span class=m>0</span>.0.0.0/0<span class=w> </span><span class=m>10</span>.5.204.254<span class=w> </span>dst-ip
<span class=c1># 目前该路由已自动维护</span>
</code></pre></div> <h2 id=2-ovn-eip>2. ovn-eip<a class=headerlink href=#2-ovn-eip title="Permanent link">&para;</a></h2> <p>该功能和 iptables-eip 设计和使用方式基本一致,ovn-eip 目前有三种 type</p> <ul> <li>nat: 用于 ovn dnat,fip, snat, 这些 nat 类型会记录在 status 中</li> <li>lrp: 用于 vpc 和公网相连的资源</li> <li>node-ext-gw: 用于 ovn 基于 bfd 的 ecmp 静态路由场景</li> </ul> <div class=highlight><pre><span></span><code>---
</code></pre></div> <h2 id=2-ovn-eip>2. ovn-eip<a class=headerlink href=#2-ovn-eip title="Permanent link">&para;</a></h2> <p>该功能和 iptables-eip 设计和使用方式基本一致,ovn-eip 目前有三种 type</p> <ul> <li>nat: 用于 ovn dnat,fip, snat, 这些 nat 类型会记录在 status 中</li> <li>lrp: Resources connected to the public network from a vpc can be used by nat</li> <li>lsp: 用于 ovn 基于 bfd 的 ecmp 静态路由场景,在网关节点上提供一个 ovs internal port 作为 ecmp 路由的下一跳</li> </ul> <div class=highlight><pre><span></span><code>---
kind:<span class=w> </span>OvnEip
apiVersion:<span class=w> </span>kubeovn.io/v1
metadata:
<span class=w> </span>name:<span class=w> </span>eip-static
spec:
<span class=w> </span>externalSubnet:<span class=w> </span>external204
<span class=w> </span>type:<span class=w> </span>fip
<span class=w> </span>type:<span class=w> </span>nat

<span class=c1># 动态分配一个 eip 资源,该资源预留用于 fip 场景</span>
</code></pre></div> <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>
Expand All @@ -146,7 +146,7 @@
<span class=w> </span>name:<span class=w> </span>eip-static
spec:
<span class=w> </span>externalSubnet:<span class=w> </span>external204
<span class=w> </span>type:<span class=w> </span>fip
<span class=w> </span>type:<span class=w> </span>nat

---
kind:<span class=w> </span>OvnFip
Expand Down Expand Up @@ -207,7 +207,7 @@
<span class=w> </span>name:<span class=w> </span>eip-for-vip
spec:
<span class=w> </span>externalSubnet:<span class=w> </span>external204
<span class=w> </span>type:<span class=w> </span>fip
<span class=w> </span>type:<span class=w> </span>nat

---
kind:<span class=w> </span>OvnFip
Expand Down Expand Up @@ -268,7 +268,7 @@
<span class=w> </span>name:<span class=w> </span>snat-for-subnet-in-vpc
spec:
<span class=w> </span>externalSubnet:<span class=w> </span>external204
<span class=w> </span>type:<span class=w> </span>snat
<span class=w> </span>type:<span class=w> </span>nat

---
kind:<span class=w> </span>OvnSnatRule
Expand All @@ -286,7 +286,7 @@
<span class=w> </span>name:<span class=w> </span>snat-for-pod-vpc-ip
spec:
<span class=w> </span>externalSubnet:<span class=w> </span>external204
<span class=w> </span>type:<span class=w> </span>snat
<span class=w> </span>type:<span class=w> </span>nat

---
kind:<span class=w> </span>OvnSnatRule
Expand Down Expand Up @@ -417,7 +417,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年8月3日</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年8月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>
</script> <script>
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object")
Expand Down
Loading

0 comments on commit 0ccd29f

Please sign in to comment.