|
7 | 7 | * [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest)
|
8 | 8 |
|
9 | 9 | ## Deploy cluster
|
| 10 | + |
10 | 11 | * In Azure dashboard choose **Create a resource**
|
11 | 12 | * Choose **Kubernetes Service**
|
12 | 13 |
|
13 | 14 | ## Cluster basics (version >=1.10)
|
| 15 | + |
14 | 16 | 
|
15 | 17 |
|
16 | 18 | ## Cluster authentication (Enable RBAC)
|
| 19 | + |
17 | 20 | 
|
18 | 21 |
|
19 | 22 | ## Wait for cluster to be created
|
| 23 | + |
20 | 24 | 
|
21 | 25 |
|
22 | 26 | ## Move to control using `kubectl`
|
23 | 27 |
|
24 |
| -* Login to Azure using CLI |
25 |
| -``` |
| 28 | +- Login to Azure using CLI |
| 29 | + |
| 30 | + ``` |
26 | 31 | $ az login
|
27 | 32 | [
|
28 | 33 | {
|
|
38 | 43 | }
|
39 | 44 | }
|
40 | 45 | ]
|
41 |
| -``` |
| 46 | + ``` |
| 47 | + |
| 48 | +- Get AKS credentials to merge with local config, using resource group and |
| 49 | + cluster names used for above deployment |
42 | 50 |
|
43 |
| -* Get AKS credentials to merge with local config, using resource group and cluster names used for above deployment |
44 |
| -``` |
45 |
| - $ az aks get-credentials --resource-group clifton --name ArangoDB |
46 |
| -``` |
| 51 | + ``` |
| 52 | + $ az aks get-credentials --resource-group clifton --name ArangoDB |
| 53 | + ``` |
47 | 54 |
|
48 |
| -* Verify successful merge |
49 |
| -``` |
| 55 | +- Verify successful merge |
| 56 | + |
| 57 | + ``` |
50 | 58 | $ kubectl get svc
|
51 | 59 | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
52 | 60 | kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 38m
|
53 |
| -``` |
| 61 | + ``` |
| 62 | + |
| 63 | +- Initialize `helm` |
54 | 64 |
|
55 |
| -* Initialise `helm` |
56 |
| -``` |
| 65 | + ``` |
57 | 66 | $ kubectl create serviceaccount --namespace kube-system tiller
|
58 | 67 | serviceaccount/tiller created
|
59 |
| -``` |
60 |
| -``` |
| 68 | + ``` |
| 69 | + |
| 70 | + ``` |
61 | 71 | $ kubectl create clusterrolebinding tiller-cluster-rule \
|
62 | 72 | --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
|
63 | 73 | clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created
|
64 |
| -``` |
65 |
| -``` |
| 74 | + ``` |
| 75 | + |
| 76 | + ``` |
66 | 77 | $ helm init --service-account tiller
|
67 |
| - $HELM_HOME has been configured at /home/kaveh/.helm. |
| 78 | + $HELM_HOME has been configured at /home/xxx/.helm. |
68 | 79 | ...
|
69 | 80 | Happy Helming!
|
70 | 81 |
|
71 | 82 | Tiller (the Helm server-side component) has been
|
72 | 83 | installed into your Kubernetes Cluster.
|
73 |
| -``` |
| 84 | + ``` |
| 85 | + |
| 86 | +- Deploy ArangoDB operator |
74 | 87 |
|
75 |
| -* Deploy ArabgoDB operator |
76 |
| -``` |
| 88 | + ``` |
77 | 89 | $ helm install \
|
78 | 90 | github.com/arangodb/kube-arangodb/releases/download/X.X.X/kube-arangodb.tgz
|
79 | 91 | NAME: orderly-hydra
|
|
83 | 95 | ...
|
84 | 96 | See https://docs.arangodb.com/devel/Manual/Tutorials/Kubernetes/
|
85 | 97 | for how to get started.
|
86 |
| -``` |
| 98 | + ``` |
| 99 | + |
| 100 | +- Deploy ArangoDB cluster |
87 | 101 |
|
88 |
| -* Deploy ArangoDB cluster |
89 |
| -``` |
| 102 | + ``` |
90 | 103 | $ kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/master/examples/simple-cluster.yaml
|
91 |
| -``` |
| 104 | + ``` |
0 commit comments