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
40c245e5
Commit
40c245e5
authored
Oct 16, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make EVENT_PD variable useful for kubemark
parent
1ab5075c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
config-default.sh
cluster/kubemark/gce/config-default.sh
+1
-0
util.sh
test/kubemark/gce/util.sh
+2
-2
start-kubemark-master.sh
test/kubemark/resources/start-kubemark-master.sh
+1
-2
start-kubemark.sh
test/kubemark/start-kubemark.sh
+1
-0
No files found.
cluster/kubemark/gce/config-default.sh
View file @
40c245e5
...
...
@@ -33,6 +33,7 @@ REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false}
PREEMPTIBLE_NODE
=
${
PREEMPTIBLE_NODE
:-
false
}
NODE_ACCELERATORS
=
${
NODE_ACCELERATORS
:-
""
}
CREATE_CUSTOM_NETWORK
=
${
CREATE_CUSTOM_NETWORK
:-
false
}
EVENT_PD
=
${
EVENT_PD
:-
false
}
MASTER_OS_DISTRIBUTION
=
${
KUBE_MASTER_OS_DISTRIBUTION
:-
gci
}
NODE_OS_DISTRIBUTION
=
${
KUBE_NODE_OS_DISTRIBUTION
:-
gci
}
...
...
test/kubemark/gce/util.sh
View file @
40c245e5
...
...
@@ -33,7 +33,7 @@ function create-master-instance-with-resources {
--type
"
${
MASTER_DISK_TYPE
}
"
\
--size
"
${
MASTER_DISK_SIZE
}
"
if
[
"
${
EVENT_PD
:-
false
}
"
==
"true"
]
;
then
if
[
"
${
EVENT_PD
:-}
"
==
"true"
]
;
then
run-gcloud-compute-with-retries disks create
"
${
MASTER_NAME
}
-event-pd"
\
${
GCLOUD_COMMON_ARGS
}
\
--type
"
${
MASTER_DISK_TYPE
}
"
\
...
...
@@ -70,7 +70,7 @@ function create-master-instance-with-resources {
${
GCLOUD_COMMON_ARGS
}
\
--metadata-from-file
startup-script
=
"
${
KUBE_ROOT
}
/test/kubemark/resources/start-kubemark-master.sh"
if
[
"
${
EVENT_PD
:-
false
}
"
==
"true"
]
;
then
if
[
"
${
EVENT_PD
:-}
"
==
"true"
]
;
then
echo
"Attaching
${
MASTER_NAME
}
-event-pd to
${
MASTER_NAME
}
"
run-gcloud-compute-with-retries instances attach-disk
"
${
MASTER_NAME
}
"
\
${
GCLOUD_COMMON_ARGS
}
\
...
...
test/kubemark/resources/start-kubemark-master.sh
View file @
40c245e5
...
...
@@ -681,8 +681,7 @@ fi
{
EVENT_STORE_IP
=
"
${
EVENT_STORE_IP
:-
127
.0.0.1
}
"
EVENT_STORE_URL
=
"
${
EVENT_STORE_URL
:-
http
://
${
EVENT_STORE_IP
}
:4002
}
"
EVENT_PD
=
"
${
EVENT_PD
:-
false
}
"
if
[
"
${
EVENT_PD
:-
false
}
"
==
"true"
]
;
then
if
[
"
${
EVENT_PD
:-}
"
==
"true"
]
;
then
event_etcd_mount_point
=
"/mnt/disks/master-event-pd"
mount-pd
"google-master-event-pd"
"
${
event_etcd_mount_point
}
"
# Contains all the data stored in event etcd.
...
...
test/kubemark/start-kubemark.sh
View file @
40c245e5
...
...
@@ -52,6 +52,7 @@ function create-master-environment-file {
# Generic variables.
INSTANCE_PREFIX="
${
INSTANCE_PREFIX
:-}
"
SERVICE_CLUSTER_IP_RANGE="
${
SERVICE_CLUSTER_IP_RANGE
:-}
"
EVENT_PD="
${
EVENT_PD
:-}
"
# Etcd related variables.
ETCD_IMAGE="
${
ETCD_IMAGE
:-
3
.1.10
}
"
...
...
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