Skip to content

Commit

Permalink
fix defunct ovn-nbctl daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 13, 2022
1 parent f8594a2 commit 0695d31
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
8 changes: 8 additions & 0 deletions dist/images/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@ RUN --mount=type=bind,target=/packages,from=ovs-builder,source=/packages \
dpkg -i /packages/openvswitch-*.deb && \
dpkg -i /packages/python3-openvswitch*.deb &&\
dpkg -i --ignore-depends=openvswitch-switch,openvswitch-common /packages/ovn-*.deb

ENV DUMB_INIT_VERSION="1.2.5"
RUN dump_arch="x86_64"; \
if [ "$ARCH" = "arm64" ]; then dump_arch="aarch64"; fi; \
curl -sSf -L --retry 5 -o /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${dump_arch} && \
chmod +x /usr/bin/dumb-init

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
3 changes: 1 addition & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1872,9 +1872,8 @@ spec:
- name: kube-ovn-controller
image: "$REGISTRY/kube-ovn:$VERSION"
imagePullPolicy: $IMAGE_PULL_POLICY
command:
- /kube-ovn/start-controller.sh
args:
- /kube-ovn/start-controller.sh
- --default-cidr=$POD_CIDR
- --default-gateway=$POD_GATEWAY
- --default-gateway-check=$CHECK_GATEWAY
Expand Down
3 changes: 1 addition & 2 deletions yamls/kube-ovn-dual-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ spec:
- name: kube-ovn-controller
image: "kubeovn/kube-ovn:v1.9.2"
imagePullPolicy: IfNotPresent
command:
- /kube-ovn/start-controller.sh
args:
- /kube-ovn/start-controller.sh
- --default-cidr=10.16.0.0/16,fd00:10:16::/64
- --default-gateway=10.16.0.1,fd00:10:16::1
- --default-gateway-check=true
Expand Down
3 changes: 1 addition & 2 deletions yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ spec:
- name: kube-ovn-controller
image: "kubeovn/kube-ovn:v1.9.2"
imagePullPolicy: IfNotPresent
command:
- /kube-ovn/start-controller.sh
args:
- /kube-ovn/start-controller.sh
- --default-cidr=2001:db8:0000:0000::/64
- --default-gateway=2001:db8:0000:0000::1
- --default-gateway-check=true
Expand Down
3 changes: 1 addition & 2 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ spec:
- name: kube-ovn-controller
image: "kubeovn/kube-ovn:v1.9.2"
imagePullPolicy: IfNotPresent
command:
- /kube-ovn/start-controller.sh
args:
- /kube-ovn/start-controller.sh
- --default-cidr=10.16.0.0/16
- --default-gateway=10.16.0.1
- --default-gateway-check=true
Expand Down

0 comments on commit 0695d31

Please sign in to comment.