Update clc.md

api server -> apiserver. In addition, fix leading spaces in commands.
This commit is contained in:
Stewart-YU
2017-08-14 15:11:42 +08:00
committed by Andrew Chen
parent 2f2dc6691d
commit 8072c0c1ac
+14 -14
View File
@@ -71,22 +71,22 @@ guide to install the requirements and install the script.
```shell ```shell
# system # system
apt-get update apt-get update
apt-get install -y git python python-crypto apt-get install -y git python python-crypto
curl -O https://bootstrap.pypa.io/get-pip.py curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py python get-pip.py
# installing this repository # installing this repository
mkdir -p ~home/k8s-on-clc mkdir -p ~home/k8s-on-clc
cd ~home/k8s-on-clc cd ~home/k8s-on-clc
git clone https://github.com/CenturyLinkCloud/adm-kubernetes-on-clc.git git clone https://github.com/CenturyLinkCloud/adm-kubernetes-on-clc.git
cd adm-kubernetes-on-clc/ cd adm-kubernetes-on-clc/
pip install -r requirements.txt pip install -r requirements.txt
# getting started # getting started
cd ansible cd ansible
cp credentials.sh.template credentials.sh; vi credentials.sh cp credentials.sh.template credentials.sh; vi credentials.sh
source credentials.sh source credentials.sh
``` ```
@@ -252,9 +252,9 @@ kubectl cluster-info
### Accessing the cluster programmatically ### Accessing the cluster programmatically
It's possible to use the locally stored client certificates to access the api server. For example, you may want to use any of the [Kubernetes API client libraries](/docs/reference/client-libraries/) to program against your Kubernetes cluster in the programming language of your choice. It's possible to use the locally stored client certificates to access the apiserver. For example, you may want to use any of the [Kubernetes API client libraries](/docs/reference/client-libraries/) to program against your Kubernetes cluster in the programming language of your choice.
To demonstrate how to use these locally stored certificates, we provide the following example of using ```curl``` to communicate to the master api server via https: To demonstrate how to use these locally stored certificates, we provide the following example of using ```curl``` to communicate to the master apiserver via https:
```shell ```shell
curl \ curl \