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
443fd11b
Commit
443fd11b
authored
Feb 15, 2018
by
Karol Wychowaniec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cluster-location to GCE instance attributes
parent
e267f46c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
master-helper.sh
cluster/gce/gci/master-helper.sh
+1
-0
node-helper.sh
cluster/gce/gci/node-helper.sh
+1
-0
upgrade.sh
cluster/gce/upgrade.sh
+1
-0
util.sh
cluster/gce/util.sh
+10
-0
No files found.
cluster/gce/gci/master-helper.sh
View file @
443fd11b
...
@@ -108,6 +108,7 @@ function create-master-instance-internal() {
...
@@ -108,6 +108,7 @@ function create-master-instance-internal() {
local
metadata
=
"kube-env=
${
KUBE_TEMP
}
/master-kube-env.yaml"
local
metadata
=
"kube-env=
${
KUBE_TEMP
}
/master-kube-env.yaml"
metadata
=
"
${
metadata
}
,user-data=
${
KUBE_ROOT
}
/cluster/gce/gci/master.yaml"
metadata
=
"
${
metadata
}
,user-data=
${
KUBE_ROOT
}
/cluster/gce/gci/master.yaml"
metadata
=
"
${
metadata
}
,configure-sh=
${
KUBE_ROOT
}
/cluster/gce/gci/configure.sh"
metadata
=
"
${
metadata
}
,configure-sh=
${
KUBE_ROOT
}
/cluster/gce/gci/configure.sh"
metadata
=
"
${
metadata
}
,cluster-location=
${
KUBE_TEMP
}
/cluster-location.txt"
metadata
=
"
${
metadata
}
,cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt"
metadata
=
"
${
metadata
}
,cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt"
metadata
=
"
${
metadata
}
,gci-update-strategy=
${
KUBE_TEMP
}
/gci-update.txt"
metadata
=
"
${
metadata
}
,gci-update-strategy=
${
KUBE_TEMP
}
/gci-update.txt"
metadata
=
"
${
metadata
}
,gci-ensure-gke-docker=
${
KUBE_TEMP
}
/gci-ensure-gke-docker.txt"
metadata
=
"
${
metadata
}
,gci-ensure-gke-docker=
${
KUBE_TEMP
}
/gci-ensure-gke-docker.txt"
...
...
cluster/gce/gci/node-helper.sh
View file @
443fd11b
...
@@ -22,6 +22,7 @@ function get-node-instance-metadata {
...
@@ -22,6 +22,7 @@ function get-node-instance-metadata {
metadata+
=
"kube-env=
${
KUBE_TEMP
}
/node-kube-env.yaml,"
metadata+
=
"kube-env=
${
KUBE_TEMP
}
/node-kube-env.yaml,"
metadata+
=
"user-data=
${
KUBE_ROOT
}
/cluster/gce/gci/node.yaml,"
metadata+
=
"user-data=
${
KUBE_ROOT
}
/cluster/gce/gci/node.yaml,"
metadata+
=
"configure-sh=
${
KUBE_ROOT
}
/cluster/gce/gci/configure.sh,"
metadata+
=
"configure-sh=
${
KUBE_ROOT
}
/cluster/gce/gci/configure.sh,"
metadata+
=
"cluster-location=
${
KUBE_TEMP
}
/cluster-location.txt,"
metadata+
=
"cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt,"
metadata+
=
"cluster-name=
${
KUBE_TEMP
}
/cluster-name.txt,"
metadata+
=
"gci-update-strategy=
${
KUBE_TEMP
}
/gci-update.txt,"
metadata+
=
"gci-update-strategy=
${
KUBE_TEMP
}
/gci-update.txt,"
metadata+
=
"gci-ensure-gke-docker=
${
KUBE_TEMP
}
/gci-ensure-gke-docker.txt,"
metadata+
=
"gci-ensure-gke-docker=
${
KUBE_TEMP
}
/gci-ensure-gke-docker.txt,"
...
...
cluster/gce/upgrade.sh
View file @
443fd11b
...
@@ -151,6 +151,7 @@ function prepare-upgrade() {
...
@@ -151,6 +151,7 @@ function prepare-upgrade() {
detect-project
detect-project
detect-subnetworks
detect-subnetworks
detect-node-names
# sets INSTANCE_GROUPS
detect-node-names
# sets INSTANCE_GROUPS
write-cluster-location
write-cluster-name
write-cluster-name
tars_from_version
tars_from_version
}
}
...
...
cluster/gce/util.sh
View file @
443fd11b
...
@@ -472,6 +472,15 @@ function yaml-quote {
...
@@ -472,6 +472,15 @@ function yaml-quote {
echo
"'
$(
echo
"
${
@
:-}
"
|
sed
-e
"s/'/''/g"
)
'"
echo
"'
$(
echo
"
${
@
:-}
"
|
sed
-e
"s/'/''/g"
)
'"
}
}
# Writes the cluster location into a temporary file.
# Assumed vars
# ZONE
function
write-cluster-location
{
cat
>
"
${
KUBE_TEMP
}
/cluster-location.txt"
<<
EOF
${
ZONE
}
EOF
}
# Writes the cluster name into a temporary file.
# Writes the cluster name into a temporary file.
# Assumed vars
# Assumed vars
# CLUSTER_NAME
# CLUSTER_NAME
...
@@ -1499,6 +1508,7 @@ function kube-up() {
...
@@ -1499,6 +1508,7 @@ function kube-up() {
create-network
create-network
create-subnetworks
create-subnetworks
detect-subnetworks
detect-subnetworks
write-cluster-location
write-cluster-name
write-cluster-name
create-autoscaler-config
create-autoscaler-config
create-master
create-master
...
...
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