-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from qjing666/document
Update document
- Loading branch information
Showing
6 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# K8S cluster application | ||
Here is a guide for you to apply your K8S cluster on [Baidu Cloud](https://cloud.baidu.com/doc/CCE/s/zjxpoqohb) | ||
|
||
The number of CPU cores should be larger than 8 | ||
|
||
<img src='fl_node.png' width = "400" height = "160"> | ||
|
||
# kubectl installation | ||
```sh | ||
#download newest version | ||
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl" | ||
#add authorization for kubectl execution | ||
chmod +x ./kubectl | ||
#move the execuable file to the enviroment path | ||
sudo mv ./kubectl /usr/local/bin/kubectl | ||
#check installation and get the version | ||
kubectl version | ||
``` | ||
# Add configuration for kubectl | ||
|
||
After installing kubectl, we need to add some configurations for kubectl. | ||
|
||
You can find the status of your cluster and download the certication [here](https://cloud.baidu.com/doc/CCE/index.html#.E6.9F.A5.E7.9C.8B.E9.9B.86.E7.BE.A4) | ||
|
||
<img src='status.png' width = "400" height = "160"> | ||
|
||
Finally, move the certification to default path of kubectl and you can access the remote K8S cluster on your machine | ||
|
||
```sh | ||
mv kubectl.conf ~/.kube/config | ||
|
||
kubectl get node | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.