Skip to content

Commit

Permalink
Disable kube-dns
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Tie <wtie@cisco.com>
  • Loading branch information
Wei Tie committed Jan 10, 2018
1 parent 009eee9 commit e7723e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions install/k8s/cluster/k8smaster_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ if [ ! -z "$CONTIV_TEST" ]; then
chmod 0644 /etc/kubernetes/admin.conf
cd /opt/gopath/src/github.com/contiv/netplugin/install/k8s/contiv/
./contiv-compose add-systest ./base.yaml > /shared/contiv.yaml
# remove kube-dns
# TODO: enable kube-dns
kubectl delete deployment -n kube-system kube-dns
else
cp /opt/gopath/src/github.com/contiv/netplugin/install/k8s/contiv/base.yaml /shared/contiv.yaml
fi

kubectl apply -f /shared/contiv.yaml
5 changes: 1 addition & 4 deletions install/k8s/contiv/contiv-compose
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ class ContivComposer(object):
'CONTIV_NETMASTER_ETCD_ENDPOINTS')
]
# make the container idle
container['command'] = ["/bin/sh", "-c"]
container['args'] = [
'cp /contiv/bin/contivk8s /opt/cni/bin/contivk8s && tail -f /dev/null'
]
container['command'] = ["tail", "-f", "/dev/null"]
# add binary mount points to run tests
container['volumeMounts'].append({
'mountPath': '/contiv/bin',
Expand Down
3 changes: 3 additions & 0 deletions test/systemtests/kubeadm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ func (k *kubePod) startNetplugin(args string) error {
}

logrus.Infof("Starting netplugin on %s", k.node.Name())
copyContivK8SCmd := `cp /contiv/bin/contivk8s /opt/cni/bin/contivk8s`
k.exec(podName, copyContivK8SCmd, "kube-system")

startNetpluginCmd := (k.node.suite.basicInfo.BinPath + `/netplugin --vlan-if=` +
k.node.suite.hostInfo.HostDataInterfaces + k.commonArgs() + args + ` > ` + netpluginLogLocation + ` 2>&1`)

Expand Down

0 comments on commit e7723e1

Please sign in to comment.