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
d8cd5fa3
Commit
d8cd5fa3
authored
Dec 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17091 from justinsb/aws_strip_comments
Auto commit by PR queue bot
parents
229f40e6
428e4156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
util.sh
cluster/aws/util.sh
+7
-2
No files found.
cluster/aws/util.sh
View file @
d8cd5fa3
...
@@ -891,7 +891,12 @@ function start-master() {
...
@@ -891,7 +891,12 @@ function start-master() {
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/create-dynamic-salt-files.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/create-dynamic-salt-files.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/download-release.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/download-release.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/salt-master.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/aws/templates/salt-master.sh"
)
>
"
${
KUBE_TEMP
}
/master-start.sh"
)
>
"
${
KUBE_TEMP
}
/master-user-data"
# We're running right up against the 16KB limit
# Remove all comment lines and then put back the bin/bash shebang
sed
-i
-e
's/^[[:blank:]]*#.*$//'
-e
'/^[[:blank:]]*$/d'
"
${
KUBE_TEMP
}
/master-user-data"
sed
-i
'1i #! /bin/bash'
"
${
KUBE_TEMP
}
/master-user-data"
echo
"Starting Master"
echo
"Starting Master"
master_id
=
$(
$AWS_CMD
run-instances
\
master_id
=
$(
$AWS_CMD
run-instances
\
...
@@ -904,7 +909,7 @@ function start-master() {
...
@@ -904,7 +909,7 @@ function start-master() {
--security-group-ids
${
MASTER_SG_ID
}
\
--security-group-ids
${
MASTER_SG_ID
}
\
--associate-public-ip-address
\
--associate-public-ip-address
\
--block-device-mappings
"
${
MASTER_BLOCK_DEVICE_MAPPINGS
}
"
\
--block-device-mappings
"
${
MASTER_BLOCK_DEVICE_MAPPINGS
}
"
\
--user-data
file://
${
KUBE_TEMP
}
/master-
start.sh
\
--user-data
file://
${
KUBE_TEMP
}
/master-
user-data
\
--query
Instances[].InstanceId
)
--query
Instances[].InstanceId
)
add-tag
$master_id
Name
$MASTER_NAME
add-tag
$master_id
Name
$MASTER_NAME
add-tag
$master_id
Role
$MASTER_TAG
add-tag
$master_id
Role
$MASTER_TAG
...
...
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