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
f3cc62d8
Unverified
Commit
f3cc62d8
authored
Feb 08, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify image registry value in kubemark setup scripts
parent
b922ffc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
cloud-provider-config.sh
test/kubemark/cloud-provider-config.sh
+1
-0
hollow-node_template.yaml
test/kubemark/resources/hollow-node_template.yaml
+2
-2
start-kubemark.sh
test/kubemark/start-kubemark.sh
+1
-11
No files found.
test/kubemark/cloud-provider-config.sh
View file @
f3cc62d8
...
...
@@ -17,4 +17,5 @@
CLOUD_PROVIDER
=
"
${
CLOUD_PROVIDER
:-
gce
}
"
CONTAINER_REGISTRY
=
"
${
CONTAINER_REGISTRY
:-
gcr
.io
}
"
PROJECT
=
"
${
PROJECT
:-}
"
FULL_REGISTRY
=
"
${
CONTAINER_REGISTRY
}
/
${
PROJECT
}
"
KUBEMARK_IMAGE_MAKE_TARGET
=
"
${
KUBEMARK_IMAGE_MAKE_TARGET
:-
gcloudpush
}
"
test/kubemark/resources/hollow-node_template.yaml
View file @
f3cc62d8
...
...
@@ -35,7 +35,7 @@ spec:
emptyDir
:
{}
containers
:
-
name
:
hollow-kubelet
image
:
{{
registry
}}
/{{project
}}/kubemark:latest
image
:
{{
full_registry
}}
/kubemark:latest
ports
:
-
containerPort
:
4194
-
containerPort
:
10250
...
...
@@ -67,7 +67,7 @@ spec:
securityContext
:
privileged
:
true
-
name
:
hollow-proxy
image
:
{{
registry
}}
/{{project
}}/kubemark:latest
image
:
{{
full_registry
}}
/kubemark:latest
env
:
-
name
:
CONTENT_TYPE
valueFrom
:
...
...
test/kubemark/start-kubemark.sh
View file @
f3cc62d8
...
...
@@ -395,8 +395,7 @@ current-context: kubemark-context")
proxy_mem
=
$((
100
*
1024
+
${
proxy_mem_per_node
}
*
${
NUM_NODES
}))
sed
-i
''
-e
"s/{{HOLLOW_PROXY_CPU}}/
${
proxy_cpu
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{HOLLOW_PROXY_MEM}}/
${
proxy_mem
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{registry}}/
${
CONTAINER_REGISTRY
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{project}}/
${
PROJECT
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s'{{full_registry}}'
${
FULL_REGISTRY
}
'g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{master_ip}}/
${
MASTER_IP
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{kubelet_verbosity_level}}/
${
KUBELET_TEST_LOG_LEVEL
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
sed
-i
''
-e
"s/{{kubeproxy_verbosity_level}}/
${
KUBEPROXY_TEST_LOG_LEVEL
}
/g"
"
${
RESOURCE_DIRECTORY
}
/hollow-node.yaml"
...
...
@@ -457,15 +456,6 @@ write-local-kubeconfig
copy-resource-files-to-master
start-master-components
# TODO: Simplify. The caller should have to pass a full registry or nothing.
if
[[
-n
"
${
CONTAINER_REGISTRY
}
"
&&
-n
"
${
PROJECT
}
"
]]
;
then
FULL_REGISTRY
=
"
${
CONTAINER_REGISTRY
}
/
${
PROJECT
}
"
elif
[[
-n
"
${
CONTAINER_REGISTRY
}
"
]]
;
then
FULL_REGISTRY
=
"
${
CONTAINER_REGISTRY
}
"
else
FULL_REGISTRY
=
staging-k8s.gcr.io
fi
# Setup for hollow-nodes.
echo
""
echo
-e
"
${
color_yellow
}
STARTING SETUP FOR HOLLOW-NODES
${
color_norm
}
"
...
...
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