Skip to content

Commit

Permalink
kind: support reload kube-ovn component in kind cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Nov 26, 2019
1 parent cca26bb commit bbd4257
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resume:
suspend:
cd vagrant && vagrant suspend

kind:
kind-init:
kind create cluster --config yamls/kind.yaml
@for role in ${ROLES} ; do \
kind load docker-image ${REGISTRY}/kube-ovn-$$role:${RELEASE_TAG}; \
Expand All @@ -69,3 +69,9 @@ kind:
kubectl apply -f yamls/crd.yaml
kubectl apply -f yamls/ovn.yaml
kubectl apply -f yamls/kube-ovn.yaml

kind-reload:
@for role in ${ROLES} ; do \
kind load docker-image ${REGISTRY}/kube-ovn-$$role:${RELEASE_TAG}; \
done
kubectl delete pod -n kube-ovn --all
1 change: 0 additions & 1 deletion yamls/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ networking:
nodes:
- role: control-plane
- role: worker
- role: worker
8 changes: 4 additions & 4 deletions yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
hostNetwork: true
containers:
- name: kube-ovn-controller
image: "index.alauda.cn/alaudak8s/kube-ovn-controller:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-controller:v1.0.0-pre"
imagePullPolicy: Always
command:
- /kube-ovn/start-controller.sh
Expand Down Expand Up @@ -109,7 +109,7 @@ spec:
hostPID: true
initContainers:
- name: install-cni
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:vv1.0.0-pre"
imagePullPolicy: Always
command: ["/kube-ovn/install-cni.sh"]
securityContext:
Expand All @@ -122,7 +122,7 @@ spec:
name: cni-bin
containers:
- name: cni-server
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v1.0.0-pre"
command: ["sh", "/kube-ovn/start-cniserver.sh"]
args:
- --enable-mirror=false
Expand Down Expand Up @@ -205,7 +205,7 @@ spec:
hostPID: true
containers:
- name: pinger
image: "index.alauda.cn/alaudak8s/kube-ovn-pinger:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-pinger:v1.0.0-pre"
imagePullPolicy: Always
securityContext:
runAsUser: 0
Expand Down
8 changes: 4 additions & 4 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
hostNetwork: true
containers:
- name: kube-ovn-controller
image: "index.alauda.cn/alaudak8s/kube-ovn-controller:v0.9.0-pre"
image: "index.alauda.cn/alaudak8s/kube-ovn-controller:v1.0.0-pre"
imagePullPolicy: Always
command:
- /kube-ovn/start-controller.sh
Expand Down Expand Up @@ -112,7 +112,7 @@ spec:
hostPID: true
initContainers:
- name: install-cni
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v1.0.0-pre"
imagePullPolicy: Always
command: ["/kube-ovn/install-cni.sh"]
securityContext:
Expand All @@ -125,7 +125,7 @@ spec:
name: cni-bin
containers:
- name: cni-server
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-cni:v1.0.0-pre"
imagePullPolicy: Always
command:
- sh
Expand Down Expand Up @@ -215,7 +215,7 @@ spec:
hostPID: true
containers:
- name: pinger
image: "index.alauda.cn/alaudak8s/kube-ovn-pinger:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-pinger:v1.0.0-pre"
imagePullPolicy: Always
securityContext:
runAsUser: 0
Expand Down
4 changes: 2 additions & 2 deletions yamls/ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ spec:
hostNetwork: true
containers:
- name: ovn-central
image: "index.alauda.cn/alaudak8s/kube-ovn-db:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-db:v1.0.0-pre"
imagePullPolicy: Always
env:
- name: POD_IP
Expand Down Expand Up @@ -245,7 +245,7 @@ spec:
hostPID: true
containers:
- name: openvswitch
image: "index.alauda.cn/alaudak8s/kube-ovn-node:v0.9.0"
image: "index.alauda.cn/alaudak8s/kube-ovn-node:v1.0.0-pre"
imagePullPolicy: Always
securityContext:
runAsUser: 0
Expand Down

0 comments on commit bbd4257

Please sign in to comment.