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
a20d4f83
Commit
a20d4f83
authored
Feb 25, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21379 from hlamer/hyperkube-apiserver-cert-fix
Auto commit by PR queue bot
parents
fab42f5c
e5c321f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
master-multi.json
cluster/images/hyperkube/master-multi.json
+2
-1
master.json
cluster/images/hyperkube/master.json
+2
-1
setup-files.sh
cluster/images/hyperkube/setup-files.sh
+6
-1
No files found.
cluster/images/hyperkube/master-multi.json
View file @
a20d4f83
...
@@ -64,7 +64,8 @@
...
@@ -64,7 +64,8 @@
"name"
:
"setup"
,
"name"
:
"setup"
,
"image"
:
"gcr.io/google_containers/hyperkube-ARCH:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/setup-files.sh"
"/setup-files.sh"
,
"IP:10.0.0.1"
],
],
"volumeMounts"
:
[
"volumeMounts"
:
[
{
{
...
...
cluster/images/hyperkube/master.json
View file @
a20d4f83
...
@@ -64,7 +64,8 @@
...
@@ -64,7 +64,8 @@
"name"
:
"setup"
,
"name"
:
"setup"
,
"image"
:
"gcr.io/google_containers/hyperkube-ARCH:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/setup-files.sh"
"/setup-files.sh"
,
"IP:10.0.0.1"
],
],
"volumeMounts"
:
[
"volumeMounts"
:
[
{
{
...
...
cluster/images/hyperkube/setup-files.sh
View file @
a20d4f83
...
@@ -23,6 +23,11 @@ set -o errexit
...
@@ -23,6 +23,11 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
# Additional address of the API server to be added to the
# list of Subject Alternative Names of the server TLS certificate
# Should contain internal IP, i.e. IP:10.0.0.1 for 10.0.0.0/24 cluster IP range
EXTRA_SANS
=
$1
create_token
()
{
create_token
()
{
echo
$(
cat
/dev/urandom |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2> /dev/null
)
echo
$(
cat
/dev/urandom |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2> /dev/null
)
}
}
...
@@ -32,7 +37,7 @@ echo "admin,admin,admin" > /data/basic_auth.csv
...
@@ -32,7 +37,7 @@ echo "admin,admin,admin" > /data/basic_auth.csv
# Create HTTPS certificates
# Create HTTPS certificates
groupadd
-f
-r
kube-cert-test
groupadd
-f
-r
kube-cert-test
CERT_DIR
=
/data
CERT_GROUP
=
kube-cert-test /make-ca-cert.sh
$(
hostname
-i
)
CERT_DIR
=
/data
CERT_GROUP
=
kube-cert-test /make-ca-cert.sh
$(
hostname
-i
)
${
EXTRA_SANS
}
# Create known tokens for service accounts
# Create known tokens for service accounts
echo
"
$(
create_token
)
,admin,admin"
>>
/data/known_tokens.csv
echo
"
$(
create_token
)
,admin,admin"
>>
/data/known_tokens.csv
...
...
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