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
e8dc9eae
Commit
e8dc9eae
authored
May 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25470 from wojtek-t/content_type_in_kubemark
Automatic merge from submit-queue Pipe content-type variable to hollow node
parents
13f60ea8
fe470b66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
hollow-node_template.json
test/kubemark/resources/hollow-node_template.json
+26
-2
start-kubemark.sh
test/kubemark/start-kubemark.sh
+16
-0
No files found.
test/kubemark/resources/hollow-node_template.json
View file @
e8dc9eae
...
...
@@ -36,12 +36,24 @@
{
"containerPort"
:
10250
},
{
"containerPort"
:
10255
}
],
"env"
:
[
{
"name"
:
"CONTENT_TYPE"
,
"valueFrom"
:
{
"configMapKeyRef"
:
{
"name"
:
"node-configmap"
,
"key"
:
"content.type"
}
}
}
],
"command"
:
[
"./kubemark.sh"
],
"args"
:
[
"--v=3"
,
"--morph=kubelet"
"--morph=kubelet"
,
"$(CONTENT_TYPE)"
],
"volumeMounts"
:
[
{
...
...
@@ -60,12 +72,24 @@
{
"name"
:
"hollow-proxy"
,
"image"
:
"gcr.io/##project##/kubemark:latest"
,
"env"
:
[
{
"name"
:
"CONTENT_TYPE"
,
"valueFrom"
:
{
"configMapKeyRef"
:
{
"name"
:
"node-configmap"
,
"key"
:
"content.type"
}
}
}
],
"command"
:
[
"./kubemark.sh"
],
"args"
:
[
"--v=3"
,
"--morph=proxy"
"--morph=proxy"
,
"$(CONTENT_TYPE)"
],
"volumeMounts"
:
[
{
...
...
test/kubemark/start-kubemark.sh
View file @
e8dc9eae
...
...
@@ -207,6 +207,20 @@ cat > "${KUBECONFIG_SECRET}" << EOF
}
EOF
NODE_CONFIGMAP
=
"
${
RESOURCE_DIRECTORY
}
/node_config_map.json"
cat
>
"
${
NODE_CONFIGMAP
}
"
<<
EOF
{
"apiVersion": "v1",
"kind": "ConfigMap",
"metadata": {
"name": "node-configmap"
},
"data": {
"content.type": "
${
TEST_CLUSTER_API_CONTENT_TYPE
}
"
}
}
EOF
LOCAL_KUBECONFIG
=
"
${
RESOURCE_DIRECTORY
}
/kubeconfig.loc"
cat
>
"
${
LOCAL_KUBECONFIG
}
"
<<
EOF
apiVersion: v1
...
...
@@ -247,10 +261,12 @@ sed -i'' -e "s/##EVENTER_MEM##/${eventer_mem}/g" "${RESOURCE_DIRECTORY}/addons/h
"
${
KUBECTL
}
"
create
-f
"
${
RESOURCE_DIRECTORY
}
/kubemark-ns.json"
"
${
KUBECTL
}
"
create
-f
"
${
KUBECONFIG_SECRET
}
"
--namespace
=
"kubemark"
"
${
KUBECTL
}
"
create
-f
"
${
NODE_CONFIGMAP
}
"
--namespace
=
"kubemark"
"
${
KUBECTL
}
"
create
-f
"
${
RESOURCE_DIRECTORY
}
/addons"
--namespace
=
"kubemark"
"
${
KUBECTL
}
"
create
-f
"
${
RESOURCE_DIRECTORY
}
/hollow-node.json"
--namespace
=
"kubemark"
rm
"
${
KUBECONFIG_SECRET
}
"
rm
"
${
NODE_CONFIGMAP
}
"
echo
"Waiting for all HollowNodes to become Running..."
start
=
$(
date
+%s
)
...
...
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