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
02ac41ea
Commit
02ac41ea
authored
Nov 08, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36421 from wojtek-t/fix_kubemark
Automatic merge from submit-queue Fix non-default etcd image handling in kubemark Doesn't touch production code.
parents
a0758f67
5ffda625
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
common.sh
test/kubemark/common.sh
+4
-4
start-kubemark-master.sh
test/kubemark/start-kubemark-master.sh
+5
-5
start-kubemark.sh
test/kubemark/start-kubemark.sh
+1
-1
No files found.
test/kubemark/common.sh
View file @
02ac41ea
...
...
@@ -22,12 +22,12 @@ source "${KUBE_ROOT}/cluster/lib/util.sh"
# what what is default in hack/lib/etcd.sh
# To avoid it, if it is empty, we set it to 'avoid-overwrite' and
# clean it after that.
if
[
-z
"
${
ETCD_
VERSION
}
"
]
;
then
ETCD_
VERSION
=
"avoid-overwrite"
if
[
-z
"
${
ETCD_
IMAGE
}
"
]
;
then
ETCD_
IMAGE
=
"avoid-overwrite"
fi
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
if
[
"
${
ETCD_
VERSION
}
"
==
"avoid-overwrite"
]
;
then
ETCD_
VERSION
=
""
if
[
"
${
ETCD_
IMAGE
}
"
==
"avoid-overwrite"
]
;
then
ETCD_
IMAGE
=
""
fi
detect-project &> /dev/null
...
...
test/kubemark/start-kubemark-master.sh
View file @
02ac41ea
...
...
@@ -19,10 +19,10 @@
EVENT_STORE_IP
=
$1
EVENT_STORE_URL
=
"http://
${
EVENT_STORE_IP
}
:4002"
NUM_NODES
=
$2
KUBEMARK_ETCD_
VERSION
=
$3
if
[[
-z
"
${
KUBEMARK_ETCD_
VERSION
}
"
]]
;
then
KUBEMARK_ETCD_
IMAGE
=
$3
if
[[
-z
"
${
KUBEMARK_ETCD_
IMAGE
}
"
]]
;
then
# Default etcd version.
KUBEMARK_ETCD_
VERSION
=
"2.2.1"
KUBEMARK_ETCD_
IMAGE
=
"2.2.1"
fi
function
retry
()
{
...
...
@@ -88,7 +88,7 @@ if [ "${EVENT_STORE_IP}" == "127.0.0.1" ]; then
# Retry starting etcd to avoid pulling image errors.
retry
sudo
docker run
--net
=
host
\
-v
/var/etcd/data-events:/var/etcd/data
-v
/var/log:/var/log
-d
\
gcr.io/google_containers/etcd:
${
KUBEMARK_ETCD_
VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
gcr.io/google_containers/etcd:
${
KUBEMARK_ETCD_
IMAGE
}
/bin/sh
-c
"/usr/local/bin/etcd
\
--listen-peer-urls http://127.0.0.1:2381
\
--advertise-client-urls=http://127.0.0.1:4002
\
--listen-client-urls=http://0.0.0.0:4002
\
...
...
@@ -98,7 +98,7 @@ fi
# Retry starting etcd to avoid pulling image errors.
retry
sudo
docker run
--net
=
host
\
-v
/var/etcd/data:/var/etcd/data
-v
/var/log:/var/log
-d
\
gcr.io/google_containers/etcd:
${
KUBEMARK_ETCD_
VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
gcr.io/google_containers/etcd:
${
KUBEMARK_ETCD_
IMAGE
}
/bin/sh
-c
"/usr/local/bin/etcd
\
--listen-peer-urls http://127.0.0.1:2380
\
--advertise-client-urls=http://127.0.0.1:2379
\
--listen-client-urls=http://0.0.0.0:2379
\
...
...
test/kubemark/start-kubemark.sh
View file @
02ac41ea
...
...
@@ -148,7 +148,7 @@ gcloud compute copy-files --zone="${ZONE}" --project="${PROJECT}" \
gcloud compute ssh
"
${
MASTER_NAME
}
"
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
--command
=
"chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh &&
\
sudo ./start-kubemark-master.sh
${
EVENT_STORE_IP
:-
127
.0.0.1
}
${
NUM_NODES
:-
0
}
${
ETCD_
VERSION
:-}
"
sudo ./start-kubemark-master.sh
${
EVENT_STORE_IP
:-
127
.0.0.1
}
${
NUM_NODES
:-
0
}
${
ETCD_
IMAGE
:-}
"
# create kubeconfig for Kubelet:
KUBECONFIG_CONTENTS
=
$(
echo
"apiVersion: v1
...
...
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