Elastic Datastore in AKS
This page shows how to create an Elastic Datastore component as part of an Azure Kubernetes Service (AKS) cluster.
For prerequisites and image push instructions, see the main guide.
Java SDK
AzureKubernetesService.builder()
.withId("aks-1")
.withDescription("AKS Cluster")
.withDisplayName("AKS #1")
.region(EUROPE_WEST)
.withNodePool(AzureNodePool.builder()
.withName("nodepool")
.withMachineType(STANDARD_B2S)
.build())
.withDocumentDB(CaaSElasticDataStore.builder()
.withId("elastic-data")
.withVersion("2.5.0")
.withDescription("Elastic Data Store")
.withDisplayName("Elastic Data Store")
.withNamespace("elastic-data")
.withLink(getComponentLink())
.withKibana(true)
.withElasticVersion("8.5")
.withInstances(1)
.withStorage("10Gi")
.withStorageClassName("standard")
.withMemory(1)
.withCpu(1)
.build())
.build();
For more details, see the Elastic Datastore in Azure sample on GitHub.