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
1d919962
Commit
1d919962
authored
Jul 18, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #29141 from zmerlynn/fix-node-prefix
Automatic merge from submit-queue GCE bring-up: Differentiate NODE_TAGS from NODE_INSTANCE_PREFIX
parents
d90e3761
4c667c38
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
3 deletions
+21
-3
common.sh
cluster/common.sh
+1
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+7
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+6
-1
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+6
-1
util.sh
cluster/gce/util.sh
+1
-0
No files found.
cluster/common.sh
View file @
1d919962
...
...
@@ -534,6 +534,7 @@ function build-kube-env {
ENV_TIMESTAMP:
$(
yaml-quote
$(
date
-u
+%Y-%m-%dT%T%z
))
INSTANCE_PREFIX:
$(
yaml-quote
${
INSTANCE_PREFIX
})
NODE_INSTANCE_PREFIX:
$(
yaml-quote
${
NODE_INSTANCE_PREFIX
})
NODE_TAGS:
$(
yaml-quote
${
NODE_TAGS
:-})
CLUSTER_IP_RANGE:
$(
yaml-quote
${
CLUSTER_IP_RANGE
:-
10
.244.0.0/16
})
SERVER_BINARY_TAR_URL:
$(
yaml-quote
${
server_binary_tar_url
})
SERVER_BINARY_TAR_HASH:
$(
yaml-quote
${
SERVER_BINARY_TAR_HASH
})
...
...
cluster/gce/configure-vm.sh
View file @
1d919962
...
...
@@ -422,6 +422,7 @@ function create-salt-pillar() {
mkdir
-p
/srv/salt-overlay/pillar
cat
<<
EOF
>/srv/salt-overlay/pillar/cluster-params.sls
instance_prefix: '
$(
echo
"
$INSTANCE_PREFIX
"
|
sed
-e
"s/'/''/g"
)
'
node_tags: '
$(
echo
"
$NODE_TAGS
"
|
sed
-e
"s/'/''/g"
)
'
node_instance_prefix: '
$(
echo
"
$NODE_INSTANCE_PREFIX
"
|
sed
-e
"s/'/''/g"
)
'
cluster_cidr: '
$(
echo
"
$CLUSTER_IP_RANGE
"
|
sed
-e
"s/'/''/g"
)
'
allocate_node_cidrs: '
$(
echo
"
$ALLOCATE_NODE_CIDRS
"
|
sed
-e
"s/'/''/g"
)
'
...
...
@@ -814,8 +815,13 @@ EOF
fi
if
[[
-n
"
${
NODE_INSTANCE_PREFIX
:-}
"
]]
;
then
if
[[
-n
"
${
NODE_TAGS
:-}
"
]]
;
then
local
-r
node_tags
=
"
${
NODE_TAGS
}
"
else
local
-r
node_tags
=
"
${
NODE_INSTANCE_PREFIX
}
"
fi
cat
<<
EOF
>>/etc/gce.conf
node-tags =
${
NODE_
INSTANCE_PREFIX
}
node-tags =
${
NODE_
TAGS
}
node-instance-prefix =
${
NODE_INSTANCE_PREFIX
}
EOF
CLOUD_CONFIG
=
/etc/gce.conf
...
...
cluster/gce/gci/configure-helper.sh
View file @
1d919962
...
...
@@ -189,8 +189,13 @@ EOF
fi
if
[[
-n
"
${
NODE_INSTANCE_PREFIX
:-}
"
]]
;
then
use_cloud_config
=
"true"
if
[[
-n
"
${
NODE_TAGS
:-}
"
]]
;
then
local
-r
node_tags
=
"
${
NODE_TAGS
}
"
else
local
-r
node_tags
=
"
${
NODE_INSTANCE_PREFIX
}
"
fi
cat
<<
EOF
>>/etc/gce.conf
node-tags =
${
NODE_INSTANCE_PREFIX
}
node-tags =
${
node_tags
}
node-instance-prefix =
${
NODE_INSTANCE_PREFIX
}
EOF
fi
...
...
cluster/gce/trusty/configure-helper.sh
View file @
1d919962
...
...
@@ -332,8 +332,13 @@ EOF
fi
if
[
-n
"
${
NODE_INSTANCE_PREFIX
:-}
"
]
;
then
use_cloud_config
=
"true"
if
[[
-n
"
${
NODE_TAGS
:-}
"
]]
;
then
local
-r
node_tags
=
"
${
NODE_TAGS
}
"
else
local
-r
node_tags
=
"
${
NODE_INSTANCE_PREFIX
}
"
fi
cat
<<
EOF
>>/etc/gce.conf
node-tags =
${
NODE_INSTANCE_PREFIX
}
node-tags =
${
node_tags
}
node-instance-prefix =
${
NODE_INSTANCE_PREFIX
}
EOF
fi
...
...
cluster/gce/util.sh
View file @
1d919962
...
...
@@ -83,6 +83,7 @@ if [[ "${ENABLE_CLUSTER_AUTOSCALER}" == "true" ]]; then
fi
NODE_INSTANCE_PREFIX
=
"
${
INSTANCE_PREFIX
}
-minion"
NODE_TAGS
=
"
${
NODE_TAG
}
"
ALLOCATE_NODE_CIDRS
=
true
...
...
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