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
361c40cc
Commit
361c40cc
authored
Mar 08, 2017
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a compatibility shim for certs to support a cluster downgrade
parent
08e351ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+4
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+9
-0
No files found.
cluster/gce/configure-vm.sh
View file @
361c40cc
...
...
@@ -66,6 +66,10 @@ function create-node-pki {
KUBELET_KEY_PATH
=
"
${
pki_dir
}
/kubelet.key"
echo
"
${
KUBELET_KEY
}
"
|
base64
--decode
>
"
${
KUBELET_KEY_PATH
}
"
fi
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln
-s
"
${
CA_CERT_BUNDLE_PATH
}
"
/etc/kubernetes/ca.crt
}
# A hookpoint for setting up local devices
...
...
cluster/gce/gci/configure-helper.sh
View file @
361c40cc
...
...
@@ -216,6 +216,10 @@ function create-node-pki {
KUBELET_KEY_PATH
=
"
${
pki_dir
}
/kubelet.key"
echo
"
${
KUBELET_KEY
}
"
|
base64
--decode
>
"
${
KUBELET_KEY_PATH
}
"
fi
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln
-s
"
${
CA_CERT_BUNDLE_PATH
}
"
/etc/srv/kubernetes/ca.crt
}
function
create-master-pki
{
...
...
@@ -265,6 +269,11 @@ function create-master-pki {
SERVICEACCOUNT_KEY_PATH
=
"
${
pki_dir
}
/serviceaccount.key"
echo
"
${
SERVICEACCOUNT_KEY
}
"
|
base64
--decode
>
"
${
SERVICEACCOUNT_KEY_PATH
}
"
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln
-s
"
${
APISERVER_SERVER_CERT_PATH
}
"
/etc/srv/kubernetes/server.key
ln
-s
"
${
APISERVER_SERVER_CERT_PATH
}
"
/etc/srv/kubernetes/server.cert
}
# After the first boot and on upgrade, these files exist on the master-pd
...
...
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