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
031dd569
Commit
031dd569
authored
Mar 27, 2017
by
Dan Gillespie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etcd upgrade warning: add docs link, fixed etcd2 behavior, print non-interactive
parent
d0bbb941
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
upgrade.sh
cluster/gce/upgrade.sh
+13
-11
No files found.
cluster/gce/upgrade.sh
View file @
031dd569
...
...
@@ -447,18 +447,20 @@ if [[ "${master_upgrade}" == "false" ]] && [[ "${node_upgrade}" == "false" ]]; t
exit
1
fi
# prompt if etcd storage media type isn't set
if
[[
-z
"
${
STORAGE_MEDIA_TYPE
:-}
"
]]
;
then
# prompt if etcd storage media type isn't set unless using etcd2 when doing master upgrade
if
[[
-z
"
${
STORAGE_MEDIA_TYPE
:-}
"
]]
&&
[[
"
${
STORAGE_BACKEND
:-}
"
!=
"etcd2"
]]
&&
[[
"
${
master_upgrade
}
"
==
"true"
]]
;
then
echo
"The default etcd storage media type in 1.6 has changed from application/json to application/vnd.kubernetes.protobuf."
echo
"Documentation about the change can be found at https://kubernetes.io/docs/admin/etcd_upgrade."
echo
""
echo
"ETCD2 DOES NOT SUPPORT PROTOBUF: If you wish to have to ability to downgrade to etcd2 later application/json must be used."
echo
""
echo
"To enable using json, before running this script set:"
echo
"export STORAGE_MEDIA_TYPE=application/json"
echo
""
echo
"It's HIGHLY recommended that etcd be backed up before this step!!"
echo
""
if
[
-t
0
]
&&
[
-t
1
]
;
then
echo
"The default etcd storage media type in 1.6 has changed from application/json to application/vnd.kubernetes.protobuf."
echo
""
echo
"ETCD2 DOES NOT SUPPORT PROTOBUF: If you wish to have to ability to downgrade to etcd2 later application/json must be used."
echo
""
echo
"To enable using json, before running this script set:"
echo
"export STORAGE_MEDIA_TYPE=application/json"
echo
""
echo
"It's HIGHLY recommended that etcd be backed up before this step!!"
read
-p
"Would you like to continue? [y/N] "
confirm
read
-p
"Would you like to continue with the new default, and lose the ability to downgrade to etcd2? [y/N] "
confirm
if
[[
"
${
confirm
}
"
!=
"y"
]]
;
then
exit
1
fi
...
...
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