Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: support default vpc use static routes as custom vpc #1979

Merged
merged 1 commit into from
Oct 21, 2022
Merged

feature: support default vpc use static routes as custom vpc #1979

merged 1 commit into from
Oct 21, 2022

Conversation

bobz965
Copy link
Collaborator

@bobz965 bobz965 commented Oct 19, 2022

@bobz965
Copy link
Collaborator Author

bobz965 commented Oct 20, 2022

使用场景:
LB 可以直接基于metallb 或者 kube-vip, 同时支持iptables nat gw

默认路由配置参考:

kind: Vpc
apiVersion: kubeovn.io/v1
metadata:
  name: ovn-cluster
spec:
  namespaces:
  - default
  staticRoutes: 
  - cidr: 10.6.0.0/16
    nextHopIP: 10.6.255.254
    policy: policySrc
  policyRoutes: 
  - action: reroute
    match: ip4.src==10.6.0.0/16 && ip4.dst!=169.254.20.10 && ip4.dst!=10.7.0.0/16 && ip4.dst!=100.64.0.0/16
    nextHopIP: 10.6.255.254
    priority: 30001

为了更容易理解,静态路由对齐自定义vpc使用场景,策略路由将非svc,loaldns 流量,以及到node 的流量 转到nat gw pod
部署时关闭lb可以让网络更简单一些:
--enable-lb=false

@oilbeater oilbeater merged commit eea7888 into kubeovn:master Oct 21, 2022
oilbeater pushed a commit that referenced this pull request Oct 21, 2022
Co-authored-by: zhangbingbing <[email protected]>

(cherry picked from commit eea7888)
shane965 pushed a commit to shane965/kube-ovn that referenced this pull request Oct 24, 2022
@bobz965 bobz965 deleted the fix-ovn-cluster-vpc-static-route-gc branch November 1, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants