-
Notifications
You must be signed in to change notification settings - Fork 0
/
testhelp
75 lines (47 loc) · 1.99 KB
/
testhelp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
apt-get -y install docker-ce
sudo systemctl enable docker
sudo systemctl start docker
docker run hello-world
sudo apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
RELEASE="1.10.2-00"
apt-get -y install kubelet=${RELEASE} kubeadm=${RELEASE} kubectl=${RELEASE}
kubeadm init --pod-network-cidr 10.244.0.0/16 --kubernetes-version stable-1.10
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl create -f https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml
apt-get install -y wget make gcc git socat
wget https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.10.2.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/gopath
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export PATH=$PATH:/usr/local/bin
wget https://github.com/coreos/etcd/releases/download/v3.3.5/etcd-v3.3.5-linux-amd64.tar.gz
tar -xzvf etcd-v3.3.5-linux-amd64.tar.gz -C /usr/local
export PATH=$PATH:/usr/local/etcd-v3.3.5-linux-amd64
rm -rf $GOPATH/src/k8s.io/kubernetes
go get k8s.io/kubernetes
cd $GOPATH/src/k8s.io/kubernetes/
go get -u github.com/onsi/ginkgo/ginkgo
go get github.com/tools/godep
godep restore
godep save
pouchd --enable-cri --cri-version v1alpha2 > pouchd.log 2>&1 &
go run hack/e2e.go -- --test --test_args="--host=https://10.140.0.2:6443 --ginkgo.focus=\[Feature:Performance\]" --provider=local >/root/log.log
for i in {1..1000};do echo $i; pouch run -d busybox sleep 1000;done