新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
37
learn/learn-kubernetes-master/kiamol/ch01/aks/README.md
Normal file
37
learn/learn-kubernetes-master/kiamol/ch01/aks/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# A Kubernetes lab cluster in AKS
|
||||
|
||||
You'll need the [az](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) command installed and authenticated to your Azure subscription with the `az login` command.
|
||||
|
||||
## Setup
|
||||
|
||||
Create resource group:
|
||||
|
||||
```
|
||||
az group create --name kiamol --location eastus
|
||||
```
|
||||
|
||||
Check the supported versions of Kubernetes:
|
||||
|
||||
```
|
||||
az aks get-versions --location eastus -o table
|
||||
```
|
||||
|
||||
Create cluster - using one of the supported versions:
|
||||
|
||||
```
|
||||
az aks create -g kiamol -n kiamol-aks --node-count 1 --kubernetes-version 1.18.14
|
||||
```
|
||||
|
||||
Get credentials to use the cluster with Kubectl:
|
||||
|
||||
```
|
||||
az aks get-credentials --resource-group kiamol --name kiamol-aks
|
||||
```
|
||||
|
||||
## Teardown
|
||||
|
||||
Delete the resource group which will remove the cluster:
|
||||
|
||||
```
|
||||
az group delete --name kiamol
|
||||
```
|
||||
Reference in New Issue
Block a user