mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-15 17:51:03 +00:00
Update AKS.md
This commit is contained in:
parent
06d4af4fe8
commit
15bce3169c
1 changed files with 37 additions and 24 deletions
|
@ -7,22 +7,27 @@
|
||||||
* [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest)
|
* [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest)
|
||||||
|
|
||||||
## Deploy cluster
|
## Deploy cluster
|
||||||
|
|
||||||
* In Azure dashboard choose **Create a resource**
|
* In Azure dashboard choose **Create a resource**
|
||||||
* Choose **Kubernetes Service**
|
* Choose **Kubernetes Service**
|
||||||
|
|
||||||
## Cluster basics (version >=1.10)
|
## Cluster basics (version >=1.10)
|
||||||
|
|
||||||
![basics](./aks-create-basics.png)
|
![basics](./aks-create-basics.png)
|
||||||
|
|
||||||
## Cluster authentication (Enable RBAC)
|
## Cluster authentication (Enable RBAC)
|
||||||
|
|
||||||
![basics](./aks-create-auth.png)
|
![basics](./aks-create-auth.png)
|
||||||
|
|
||||||
## Wait for cluster to be created
|
## Wait for cluster to be created
|
||||||
|
|
||||||
![basics](./aks-create-valid.png)
|
![basics](./aks-create-valid.png)
|
||||||
|
|
||||||
## Move to control using `kubectl`
|
## Move to control using `kubectl`
|
||||||
|
|
||||||
* Login to Azure using CLI
|
- Login to Azure using CLI
|
||||||
```
|
|
||||||
|
```
|
||||||
$ az login
|
$ az login
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -38,42 +43,49 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
* Get AKS credentials to merge with local config, using resource group and cluster names used for above deployment
|
- Get AKS credentials to merge with local config, using resource group and
|
||||||
```
|
cluster names used for above deployment
|
||||||
$ az aks get-credentials --resource-group clifton --name ArangoDB
|
|
||||||
```
|
|
||||||
|
|
||||||
* Verify successful merge
|
```
|
||||||
```
|
$ az aks get-credentials --resource-group clifton --name ArangoDB
|
||||||
|
```
|
||||||
|
|
||||||
|
- Verify successful merge
|
||||||
|
|
||||||
|
```
|
||||||
$ kubectl get svc
|
$ kubectl get svc
|
||||||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 38m
|
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 38m
|
||||||
```
|
```
|
||||||
|
|
||||||
* Initialise `helm`
|
- Initialize `helm`
|
||||||
```
|
|
||||||
|
```
|
||||||
$ kubectl create serviceaccount --namespace kube-system tiller
|
$ kubectl create serviceaccount --namespace kube-system tiller
|
||||||
serviceaccount/tiller created
|
serviceaccount/tiller created
|
||||||
```
|
```
|
||||||
```
|
|
||||||
|
```
|
||||||
$ kubectl create clusterrolebinding tiller-cluster-rule \
|
$ kubectl create clusterrolebinding tiller-cluster-rule \
|
||||||
--clusterrole=cluster-admin --serviceaccount=kube-system:tiller
|
--clusterrole=cluster-admin --serviceaccount=kube-system:tiller
|
||||||
clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created
|
clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created
|
||||||
```
|
```
|
||||||
```
|
|
||||||
|
```
|
||||||
$ helm init --service-account tiller
|
$ helm init --service-account tiller
|
||||||
$HELM_HOME has been configured at /home/kaveh/.helm.
|
$HELM_HOME has been configured at /home/xxx/.helm.
|
||||||
...
|
...
|
||||||
Happy Helming!
|
Happy Helming!
|
||||||
|
|
||||||
Tiller (the Helm server-side component) has been
|
Tiller (the Helm server-side component) has been
|
||||||
installed into your Kubernetes Cluster.
|
installed into your Kubernetes Cluster.
|
||||||
```
|
```
|
||||||
|
|
||||||
* Deploy ArabgoDB operator
|
- Deploy ArangoDB operator
|
||||||
```
|
|
||||||
|
```
|
||||||
$ helm install \
|
$ helm install \
|
||||||
github.com/arangodb/kube-arangodb/releases/download/X.X.X/kube-arangodb.tgz
|
github.com/arangodb/kube-arangodb/releases/download/X.X.X/kube-arangodb.tgz
|
||||||
NAME: orderly-hydra
|
NAME: orderly-hydra
|
||||||
|
@ -83,9 +95,10 @@
|
||||||
...
|
...
|
||||||
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
|
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
|
||||||
for how to get started.
|
for how to get started.
|
||||||
```
|
```
|
||||||
|
|
||||||
* Deploy ArangoDB cluster
|
- Deploy ArangoDB cluster
|
||||||
```
|
|
||||||
|
```
|
||||||
$ kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/master/examples/simple-cluster.yaml
|
$ kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/master/examples/simple-cluster.yaml
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue