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
8696c6c1
Commit
8696c6c1
authored
Sep 01, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13290 from Huawei-PaaS/amend_two_markdown_errors_in_authentication_md
Amend some markdown and other errors in **easyrsa** section
parents
6f2dcb5b
29625a9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
authentication.md
docs/admin/authentication.md
+14
-9
No files found.
docs/admin/authentication.md
View file @
8696c6c1
...
@@ -118,18 +118,22 @@ Finally, add these parameters
...
@@ -118,18 +118,22 @@ Finally, add these parameters
into apiserver start parameters.
into apiserver start parameters.
**easyrsa**
can be used to manually generate certificates for your cluster.
**easyrsa**
can be used to manually generate certificates for your cluster.
1.
Download, unpack, and initialize the patched version of easyrsa3.
1.
Download, unpack, and initialize the patched version of easyrsa3.
`curl -L -O https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz`
`tar xzf easy-rsa.tar.gz`
curl -L -O https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz
`cd easy-rsa-master/easyrsa3`
tar xzf easy-rsa.tar.gz
`./easyrsa init-pki`
cd easy-rsa-master/easyrsa3
1.
Generate a CA. (--batch set automatic mode. --req-cn default CN to use.)
./easyrsa init-pki
`./easyrsa --batch "--req-cn=${MASTER_IP}@date +%s" build-ca nopass`
1.
Generate a CA. (
`--batch`
set automatic mode.
`--req-cn`
default CN to use.)
./easyrsa --batch "--req-cn=${MASTER_IP}@`date +%s`" build-ca nopass
1.
Generate server certificate and key.
1.
Generate server certificate and key.
(build-server-full
[
filename
]
: Generate a keypair and sign locally for a client or server)
(build-server-full
[
filename
]
: Generate a keypair and sign locally for a client or server)
`./easyrsa --subject-alt-name="${MASTER_IP}" build-server-full kubernetes-master nopass`
1.
Copy /pki/ca.crt /pki/issued/kubernetes-master.crt
./easyrsa --subject-alt-name="IP:${MASTER_IP}" build-server-full kubernetes-master nopass
/pki/private/kubernetes-master.key to your directory.
1.
Copy
`pki/ca.crt`
`pki/issued/kubernetes-master.crt`
`pki/private/kubernetes-master.key`
to your directory.
1.
Remember fill the parameters
1.
Remember fill the parameters
`--client-ca-file=/yourdirectory/ca.crt`
`--client-ca-file=/yourdirectory/ca.crt`
`--tls-cert-file=/yourdirectory/server.cert`
`--tls-cert-file=/yourdirectory/server.cert`
...
@@ -137,6 +141,7 @@ into apiserver start parameters.
...
@@ -137,6 +141,7 @@ into apiserver start parameters.
and add these into apiserver start parameters.
and add these into apiserver start parameters.
**openssl**
can also be use to manually generate certificates for your cluster.
**openssl**
can also be use to manually generate certificates for your cluster.
1.
Generate a ca.key with 2048bit
1.
Generate a ca.key with 2048bit
`openssl genrsa -out ca.key 2048`
`openssl genrsa -out ca.key 2048`
1.
According to the ca.key generate a ca.crt. (-days set the certificate effective time).
1.
According to the ca.key generate a ca.crt. (-days set the certificate effective time).
...
...
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