Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7dbfa46d
Commit
7dbfa46d
authored
Oct 13, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15548 from gmarek/fix-kubemark
Small changes in Kubemark requested by @wojtek-t
parents
9b45ed88
4625f501
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
e2e.sh
hack/jenkins/e2e.sh
+3
-1
run-e2e-tests.sh
test/kubemark/run-e2e-tests.sh
+7
-1
stop-kubemark.sh
test/kubemark/stop-kubemark.sh
+8
-4
No files found.
hack/jenkins/e2e.sh
View file @
7dbfa46d
...
...
@@ -833,6 +833,7 @@ case ${JOB_NAME} in
:
${
E2E_TEST
:
=
"false"
}
:
${
USE_KUBEMARK
:
=
"true"
}
# Override defaults to be indpendent from GCE defaults and set kubemark parameters
KUBE_GCE_INSTANCE_PREFIX
=
"kubemark100"
NUM_MINIONS
=
"10"
MASTER_SIZE
=
"n1-standard-2"
MINION_SIZE
=
"n1-standard-1"
...
...
@@ -856,6 +857,7 @@ case ${JOB_NAME} in
MINION_SIZE
=
"n1-standard-8"
# Note: can fit about 17 hollow nodes per core
# so NUM_MINIONS x cores_per_minion should
# be set accordingly.
KUBE_GCE_INSTANCE_PREFIX
=
"kubemark1000"
E2E_ZONE
=
"asia-east1-a"
KUBEMARK_MASTER_SIZE
=
"n1-standard-16"
KUBEMARK_NUM_MINIONS
=
"1000"
...
...
@@ -1079,7 +1081,7 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
NUM_MINIONS
=
${
KUBEMARK_NUM_MINIONS
:-
$NUM_MINIONS
}
MASTER_SIZE
=
${
KUBEMARK_MASTER_SIZE
:-
$MASTER_SIZE
}
./test/kubemark/start-kubemark.sh
./test/kubemark/run-
scalability-test
.sh
&&
exitcode
=
0
||
exitcode
=
$?
./test/kubemark/run-
e2e-tests
.sh
&&
exitcode
=
0
||
exitcode
=
$?
./test/kubemark/stop-kubemark.sh
NUM_MINIONS
=
${
NUM_MINIONS_BKP
}
MASTER_SIZE
=
${
MASTER_SIZE_BKP
}
...
...
test/kubemark/run-
scalability-test
.sh
→
test/kubemark/run-
e2e-tests
.sh
View file @
7dbfa46d
...
...
@@ -33,4 +33,10 @@ export KUBE_MASTER_URL="https://${KUBE_MASTER_IP}"
export
KUBECONFIG
=
"
${
ABSOLUTE_ROOT
}
/test/kubemark/kubeconfig.loc"
export
E2E_MIN_STARTUP_PODS
=
0
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh
--e2e-verify-service-account
=
false
--ginkgo
.focus
=
"should
\s
allow
\s
starting
\s
30
\s
pods
\s
per
\s
node"
if
[
-z
"
$@
"
]
;
then
ARGS
=
"--ginkgo.focus=
\"
should
\s
allow
\s
starting
\s
30
\s
pods
\s
per
\s
node
\"
"
else
ARGS
=
$@
fi
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh
--e2e-verify-service-account
=
false
$ARGS
test/kubemark/stop-kubemark.sh
View file @
7dbfa46d
...
...
@@ -19,10 +19,11 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
source
"
${
KUBE_ROOT
}
/cluster/kubemark/config-default.sh"
source
"
${
KUBE_ROOT
}
/cluster/kubemark/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
detect-project &> /dev/null
MASTER_NAME
=
"
${
INSTANCE_PREFIX
:-
"default"
}
-kubemark-master"
MASTER_NAME
=
"
${
INSTANCE_PREFIX
}
-kubemark-master"
kubectl delete
-f
${
KUBE_ROOT
}
/test/kubemark/hollow-kubelet.json &> /dev/null
||
true
kubectl delete
-f
${
KUBE_ROOT
}
/test/kubemark/kubemark-ns.json &> /dev/null
||
true
...
...
@@ -32,10 +33,13 @@ gcloud compute instances delete "${MASTER_NAME}" \
--quiet
\
--zone
"
${
ZONE
}
"
||
true
gcloud compute disks delete
\
gcloud compute disks delete
"
${
MASTER_NAME
}
"
-pd
\
--project
"
${
PROJECT
}
"
\
--quiet
\
--zone
"
${
ZONE
}
"
\
"
${
MASTER_NAME
}
"
-pd
||
true
--zone
"
${
ZONE
}
"
\
||
true
gcloud compute firewall-rules delete
"
${
INSTANCE_PREFIX
}
-kubemark-master-https"
\
--project
"
${
PROJECT
}
"
\
--quiet
||
true
rm
-rf
"
${
KUBE_ROOT
}
/test/kubemark/kubeconfig.loc"
&> /dev/null
||
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment