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
fc663944
Commit
fc663944
authored
Jul 22, 2015
by
Vish Kannan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11680 from ZJU-SEL/fix-scratch-doc
fix scartch doc
parents
03efab56
6a1cd106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scratch.md
docs/getting-started-guides/scratch.md
+3
-3
No files found.
docs/getting-started-guides/scratch.md
View file @
fc663944
...
@@ -313,10 +313,10 @@ The kubeconfig file for the administrator can be created as follows:
...
@@ -313,10 +313,10 @@ The kubeconfig file for the administrator can be created as follows:
-
`kubectl config set-cluster $CLUSTER_NAME --server=http://$MASTER_IP --insecure-skip-tls-verify=true`
-
`kubectl config set-cluster $CLUSTER_NAME --server=http://$MASTER_IP --insecure-skip-tls-verify=true`
-
Otherwise, do this to set the apiserver ip, client certs, and user credentials.
-
Otherwise, do this to set the apiserver ip, client certs, and user credentials.
-
`kubectl config set-cluster $CLUSTER_NAME --certificate-authority=$CA_CERT --embed-certs=true --server=https://$MASTER_IP`
-
`kubectl config set-cluster $CLUSTER_NAME --certificate-authority=$CA_CERT --embed-certs=true --server=https://$MASTER_IP`
-
`kubectl config set-credentials $
CLUSTER_NAME
--client-certificate=$CLI_CERT --client-key=$CLI_KEY --embed-certs=true --token=$TOKEN`
-
`kubectl config set-credentials $
USER
--client-certificate=$CLI_CERT --client-key=$CLI_KEY --embed-certs=true --token=$TOKEN`
-
Set your cluster as the default cluster to use:
-
Set your cluster as the default cluster to use:
-
`kubectl config set-context $C
LUSTER_NAME --cluster=$CLUSTER_NAME --user=admin
`
-
`kubectl config set-context $C
ONTEXT_NAME --cluster=$CLUSTER_NAME --user=$USER
`
-
`kubectl config use-context $CONTEXT
--cluster=$CONTEXT
`
-
`kubectl config use-context $CONTEXT
_NAME
`
Next, make a kubeconfig file for the kubelets and kube-proxy. There are a couple of options for how
Next, make a kubeconfig file for the kubelets and kube-proxy. There are a couple of options for how
many distinct files to make:
many distinct files to make:
...
...
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