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
396287aa
Commit
396287aa
authored
Feb 15, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21110 from MikeSpreitzer/issue/21037
Auto commit by PR queue bot
parents
e62cf38f
07d7cfd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
make-ca-cert.sh
cluster/saltbase/salt/generate-cert/make-ca-cert.sh
+12
-1
util.sh
cluster/ubuntu/util.sh
+7
-2
No files found.
cluster/saltbase/salt/generate-cert/make-ca-cert.sh
View file @
396287aa
...
@@ -18,6 +18,10 @@ set -o errexit
...
@@ -18,6 +18,10 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
if
[
"
${
DEBUG
}
"
==
"true"
]
;
then
set
-x
fi
cert_ip
=
$1
cert_ip
=
$1
extra_sans
=
${
2
:-}
extra_sans
=
${
2
:-}
cert_dir
=
${
CERT_DIR
:-
/srv/kubernetes
}
cert_dir
=
${
CERT_DIR
:-
/srv/kubernetes
}
...
@@ -57,7 +61,14 @@ cd "${tmpdir}"
...
@@ -57,7 +61,14 @@ cd "${tmpdir}"
#
#
# Due to GCS caching of public objects, it may take time for this to be widely
# Due to GCS caching of public objects, it may take time for this to be widely
# distributed.
# distributed.
curl
-L
-O
https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz
>
/dev/null 2>&1
#
# Use ~/kube/easy-rsa.tar.gz if it exists, so that it can be
# pre-pushed in cases where an outgoing connection is not allowed.
if
[
-f
~/kube/easy-rsa.tar.gz
]
;
then
ln
-s
~/kube/easy-rsa.tar.gz
.
else
curl
-L
-O
https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz
>
/dev/null 2>&1
fi
tar
xzf easy-rsa.tar.gz
>
/dev/null 2>&1
tar
xzf easy-rsa.tar.gz
>
/dev/null 2>&1
cd
easy-rsa-master/easyrsa3
cd
easy-rsa-master/easyrsa3
...
...
cluster/ubuntu/util.sh
View file @
396287aa
...
@@ -313,6 +313,9 @@ function kube-up() {
...
@@ -313,6 +313,9 @@ function kube-up() {
# downloading tarball release
# downloading tarball release
"
${
KUBE_ROOT
}
/cluster/ubuntu/download-release.sh"
"
${
KUBE_ROOT
}
/cluster/ubuntu/download-release.sh"
# Fetch the hacked easyrsa that make-ca-cert.sh will use
curl
-L
-O
https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz
>
/dev/null 2>&1
setClusterInfo
setClusterInfo
local
ii
=
0
local
ii
=
0
...
@@ -358,6 +361,7 @@ function provision-master() {
...
@@ -358,6 +361,7 @@ function provision-master() {
# copy the binaries and scripts to the ~/kube directory on the master
# copy the binaries and scripts to the ~/kube directory on the master
scp
-r
$SSH_OPTS
\
scp
-r
$SSH_OPTS
\
saltbase/salt/generate-cert/make-ca-cert.sh
\
saltbase/salt/generate-cert/make-ca-cert.sh
\
easy-rsa.tar.gz
\
ubuntu/reconfDocker.sh
\
ubuntu/reconfDocker.sh
\
"
${
KUBE_CONFIG_FILE
}
"
\
"
${
KUBE_CONFIG_FILE
}
"
\
ubuntu/util.sh
\
ubuntu/util.sh
\
...
@@ -405,7 +409,7 @@ function provision-master() {
...
@@ -405,7 +409,7 @@ function provision-master() {
cp ~/kube/init_scripts/* /etc/init.d/
cp ~/kube/init_scripts/* /etc/init.d/
groupadd -f -r kube-cert
groupadd -f -r kube-cert
${
PROXY_SETTING
}
~/kube/make-ca-cert.sh
\"
${
MASTER_IP
}
\"
\"
${
EXTRA_SANS
}
\"
${
PROXY_SETTING
}
DEBUG='
${
DEBUG
}
'
~/kube/make-ca-cert.sh
\"
${
MASTER_IP
}
\"
\"
${
EXTRA_SANS
}
\"
mkdir -p /opt/bin/
mkdir -p /opt/bin/
cp ~/kube/master/* /opt/bin/
cp ~/kube/master/* /opt/bin/
service etcd start
service etcd start
...
@@ -480,6 +484,7 @@ function provision-masterandnode() {
...
@@ -480,6 +484,7 @@ function provision-masterandnode() {
# scp order matters
# scp order matters
scp
-r
$SSH_OPTS
\
scp
-r
$SSH_OPTS
\
saltbase/salt/generate-cert/make-ca-cert.sh
\
saltbase/salt/generate-cert/make-ca-cert.sh
\
easy-rsa.tar.gz
\
"
${
KUBE_CONFIG_FILE
}
"
\
"
${
KUBE_CONFIG_FILE
}
"
\
ubuntu/util.sh
\
ubuntu/util.sh
\
ubuntu/minion/
*
\
ubuntu/minion/
*
\
...
@@ -539,7 +544,7 @@ function provision-masterandnode() {
...
@@ -539,7 +544,7 @@ function provision-masterandnode() {
cp ~/kube/init_scripts/* /etc/init.d/
cp ~/kube/init_scripts/* /etc/init.d/
groupadd -f -r kube-cert
groupadd -f -r kube-cert
${
PROXY_SETTING
}
~/kube/make-ca-cert.sh
\"
${
MASTER_IP
}
\"
\"
${
EXTRA_SANS
}
\"
${
PROXY_SETTING
}
DEBUG='
${
DEBUG
}
'
~/kube/make-ca-cert.sh
\"
${
MASTER_IP
}
\"
\"
${
EXTRA_SANS
}
\"
mkdir -p /opt/bin/
mkdir -p /opt/bin/
cp ~/kube/master/* /opt/bin/
cp ~/kube/master/* /opt/bin/
cp ~/kube/minion/* /opt/bin/
cp ~/kube/minion/* /opt/bin/
...
...
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