Coder Social home page Coder Social logo

Comments (3)

bobz965 avatar bobz965 commented on September 28, 2024
部署,参考: https://kubeovn.github.io/docs/stable/start/underlay/
修改的配置如下: 


NETWORK_TYPE=vlan
VLAN_INTERFACE_NAME=bond0  # 我的环境下宿主机节点网卡是mode4的bond
VLAN_ID=229   # 我的环境下给pod的vlan是229
POD_CIDR=10.229.0.0/24                      # 设置为物理网络 CIDR
POD_GATEWAY=10.229.0.254                   # 设置为物理网络网关
ENABLE_LB=true

不知道你的集群节点 bond0 被桥接到 ovs 网桥了没,如果没有,可能这个地方是主要问题,可以过滤下 kube-ovn-cni bond0 网卡相关的 log。

另外,我好久没有直接用这种模式了,我们这边使用的是默认部署,单独建 provider-network,vlan,subnet 的方式。我这边建议你使用这种方式。

当然如果你当前使用的这种方式有问题,这个应该也属于bug。

from kube-ovn.

yanruogu avatar yanruogu commented on September 28, 2024

你说的对,就是没有桥进去:
kube-ovn-cni的日志:
image

from kube-ovn.

yanruogu avatar yanruogu commented on September 28, 2024

我手动修改了ds kube-ovn-cni的配置如下:

        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - NET_BIND_SERVICE
            - NET_RAW
            - SYS_ADMIN
          privileged: true
          runAsUser: 0

将privileged设置为true后,就可以设置sysctl了,就是权限不足
当前这个权限,在安装的时候,没有预留修改入口,除非直接修改helm模板才行
建议优化下

from kube-ovn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.