kubeovn / kube-ovn

A Bridge between SDN and Cloud Native (Project under CNCF)
https://kubeovn.github.io/docs/stable/en/
Apache License 2.0
1.91k stars 435 forks source link

Can I put kube-ovn into other namespace instead of kube-system? #1997

Closed NoahLovesLife closed 1 year ago

NoahLovesLife commented 1 year ago

pinger crashed when I use other namespace instead of kube-system! coredns

zhangzujian commented 1 year ago

Please try to add the following parameter to the daemonset:

--ds-namespace=kube-ovn-ns
NoahLovesLife commented 1 year ago

OK, I just find the right place to add --ds-namespace=kube-ovn-ns. And problem solved! 🤣🤣

containers:
  - name: pinger
    image: "kubeovn/kube-ovn:v1.10.6"
    command:
    - /kube-ovn/kube-ovn-pinger
    args:
    - --external-address=114.114.114.114
    - --external-dns=alauda.cn
    - --logtostderr=false
    - --alsologtostderr=true
    - --log_file=/var/log/kube-ovn/kube-ovn-pinger.log
    - --log_file_max_size=0
    - --ds-namespace=kube-ovn-ns
    imagePullPolicy: IfNotPresent
    securityContext:
      runAsUser: 0
      privileged: false