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
6a18b74f
Commit
6a18b74f
authored
Feb 23, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reordering of GCE kube-up subcommands to keep them logically grouped.
parent
953982f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
util.sh
cluster/gce/util.sh
+16
-16
No files found.
cluster/gce/util.sh
View file @
6a18b74f
...
@@ -433,6 +433,13 @@ function kube-up {
...
@@ -433,6 +433,13 @@ function kube-up {
--target-tags
"
${
MASTER_TAG
}
"
\
--target-tags
"
${
MASTER_TAG
}
"
\
--allow
tcp:443 &
--allow
tcp:443 &
# We have to make sure the disk is created before creating the master VM, so
# run this in the foreground.
gcloud compute disks create
"
${
MASTER_NAME
}
-pd"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--size
"10GB"
(
(
echo
"#! /bin/bash"
echo
"#! /bin/bash"
echo
"mkdir -p /var/cache/kubernetes-install"
echo
"mkdir -p /var/cache/kubernetes-install"
...
@@ -460,22 +467,6 @@ function kube-up {
...
@@ -460,22 +467,6 @@ function kube-up {
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/gce/templates/salt-master.sh"
grep
-v
"^#"
"
${
KUBE_ROOT
}
/cluster/gce/templates/salt-master.sh"
)
>
"
${
KUBE_TEMP
}
/master-start.sh"
)
>
"
${
KUBE_TEMP
}
/master-start.sh"
# Report logging choice (if any).
if
[[
"
${
ENABLE_NODE_LOGGING
-
}
"
==
"true"
]]
;
then
echo
"+++ Logging using Fluentd to
${
LOGGING_DESTINATION
:-
unknown
}
"
# For logging to GCP we need to enable some minion scopes.
if
[[
"
${
LOGGING_DESTINATION
-
}
"
==
"gcp"
]]
;
then
MINION_SCOPES+
=(
'https://www.googleapis.com/auth/logging.write'
)
fi
fi
# We have to make sure the disk is created before creating the master VM, so
# run this in the foreground.
gcloud compute disks create
"
${
MASTER_NAME
}
-pd"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--size
"10GB"
gcloud compute instances create
"
${
MASTER_NAME
}
"
\
gcloud compute instances create
"
${
MASTER_NAME
}
"
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--zone
"
${
ZONE
}
"
\
...
@@ -491,6 +482,15 @@ function kube-up {
...
@@ -491,6 +482,15 @@ function kube-up {
# Create a single firewall rule for all minions.
# Create a single firewall rule for all minions.
create-firewall-rule
"
${
MINION_TAG
}
-all"
"
${
CLUSTER_IP_RANGE
}
"
"
${
MINION_TAG
}
"
&
create-firewall-rule
"
${
MINION_TAG
}
-all"
"
${
CLUSTER_IP_RANGE
}
"
"
${
MINION_TAG
}
"
&
# Report logging choice (if any).
if
[[
"
${
ENABLE_NODE_LOGGING
-
}
"
==
"true"
]]
;
then
echo
"+++ Logging using Fluentd to
${
LOGGING_DESTINATION
:-
unknown
}
"
# For logging to GCP we need to enable some minion scopes.
if
[[
"
${
LOGGING_DESTINATION
-
}
"
==
"gcp"
]]
;
then
MINION_SCOPES+
=(
'https://www.googleapis.com/auth/logging.write'
)
fi
fi
# Wait for last batch of jobs.
# Wait for last batch of jobs.
wait-for-jobs
wait-for-jobs
...
...
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