Skip to content

Commit 3fdc21e

Browse files
Fix example codes for Neo4j cluster on AKS (#2247) (#2314)
1 parent e338ca8 commit 3fdc21e

File tree

1 file changed

+10
-6
lines changed
  • modules/ROOT/pages/kubernetes/multi-dc-cluster

1 file changed

+10
-6
lines changed

modules/ROOT/pages/kubernetes/multi-dc-cluster/aks.adoc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[[multi-dc-cluster-aks]]
33
= Deploy a single Neo4j cluster across AKS clusters
44

5-
With the Neo4j Helm chart, you can deploy a Neo4j cluster on multiple AKS clusters using load balancers and an Azure application gateway.
5+
With the Neo4j Helm chart, you can deploy a Neo4j cluster on multiple Azure Kubernetes Service (AKS) clusters using load balancers and an Azure application gateway.
66

77
The following diagram is a schematic representation of a Neo4j cluster with three primary servers running on three different AKS clusters.
88

@@ -224,7 +224,7 @@ az network vnet subnet create -g my-RG --vnet-name my-VNet -n subnet4 \
224224
}
225225
--
226226
. Now you are ready to create the AKS clusters.
227-
Get the subscription ID of `subnet1` by either running the following command (it uses the `jq` command) or copying it from the subnet creation output.
227+
Get the subscription ID of subnets by either running the following command (it uses the `jq` command) or copying it from the subnet creation output.
228228
+
229229
[source, shell]
230230
--
@@ -236,15 +236,15 @@ az network vnet subnet show -g my-RG --vnet-name my-VNet -n subnet1 --output jso
236236
--
237237
"/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/
238238
--
239-
. Create the first AKS cluster named `my-aks-cluster-a` with 5 nodes in your resource group using the subscription ID.
239+
. Create three AKS clusters named `my-aks-cluster-a`, `my-aks-cluster-b`, and `my-aks-cluster-c` with 5 nodes each in your resource group using the subscription ID.
240240
+
241241
[source, shell]
242242
--
243243
az aks create --name my-aks-cluster-a --node-count=5 --zones 1 --vnet-subnet-id "/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/subnet1" -g my-RG
244244

245-
az aks create --name my-aks-cluster-b --node-count=5 --zones 1 --vnet-subnet-id "/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/subnet2" -g my-RG
245+
az aks create --name my-aks-cluster-b --node-count=5 --zones 2 --vnet-subnet-id "/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/subnet2" -g my-RG
246246

247-
az aks create --name my-aks-cluster-c --node-count=5 --zones 1 --vnet-subnet-id "/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/subnet3" -g my-RG
247+
az aks create --name my-aks-cluster-c --node-count=5 --zones 3 --vnet-subnet-id "/subscriptions/5b9ae547-ce82-4834-b276-b72904ceaa84/resourceGroups/my-RG/providers/Microsoft.Network/virtualNetworks/my-VNet/subnets/subnet3" -g my-RG
248248
--
249249
+
250250
.Example output
@@ -427,7 +427,7 @@ Waiting for AAD role to propagate[################################ ] 90.0000
427427
"windowsProfile": null
428428
}
429429
--
430-
. Repeat the previous two steps to create two more AKS clusters, named `my-aks-cluster-b` and `my-aks-cluster-c`.
430+
431431
. Configure `kubectl` to use your AKS clusters using:
432432
+
433433
[source, shell]
@@ -525,6 +525,8 @@ volumes:
525525
mode: defaultStorageClass
526526
services:
527527
neo4j:
528+
annotations:
529+
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
528530
spec:
529531
loadBalancerIP: 10.30.2.101
530532
multiCluster: true
@@ -552,6 +554,8 @@ volumes:
552554
mode: defaultStorageClass
553555
services:
554556
neo4j:
557+
annotations:
558+
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
555559
spec:
556560
loadBalancerIP: 10.30.3.101
557561
multiCluster: true

0 commit comments

Comments
 (0)