1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Update AKS.md

This commit is contained in:
Simran 2018-12-04 13:43:29 +01:00 committed by GitHub
parent 06d4af4fe8
commit 15bce3169c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,22 +7,27 @@
* [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest)
## Deploy cluster
* In Azure dashboard choose **Create a resource**
* Choose **Kubernetes Service**
## Cluster basics (version >=1.10)
![basics](./aks-create-basics.png)
## Cluster authentication (Enable RBAC)
![basics](./aks-create-auth.png)
## Wait for cluster to be created
![basics](./aks-create-valid.png)
## Move to control using `kubectl`
* Login to Azure using CLI
```
- Login to Azure using CLI
```
$ az login
[
{
@ -38,42 +43,49 @@
}
}
]
```
```
* 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
```
- Get AKS credentials to merge with local config, using resource group and
cluster names used for above deployment
* Verify successful merge
```
```
$ az aks get-credentials --resource-group clifton --name ArangoDB
```
- Verify successful merge
```
$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 38m
```
```
* Initialise `helm`
```
- Initialize `helm`
```
$ kubectl create serviceaccount --namespace kube-system tiller
serviceaccount/tiller created
```
```
```
```
$ kubectl create clusterrolebinding tiller-cluster-rule \
--clusterrole=cluster-admin --serviceaccount=kube-system:tiller
clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created
```
```
```
```
$ 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!
Tiller (the Helm server-side component) has been
installed into your Kubernetes Cluster.
```
```
* Deploy ArabgoDB operator
```
- Deploy ArangoDB operator
```
$ helm install \
github.com/arangodb/kube-arangodb/releases/download/X.X.X/kube-arangodb.tgz
NAME: orderly-hydra
@ -83,9 +95,10 @@
...
See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
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
```
```