Elastic Logging in AKS
This page shows how to create an Elastic Logging 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())
.withLogging(CaaSElasticLogging.builder()
.withId("elastic-logging")
.withVersion("2.5.0")
.withDescription("Elastic Logging")
.withDisplayName("Elastic Logging")
.withNamespace("elastic")
.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 Logging in Azure sample or Elastic Logging with Ambassador in Azure sample on GitHub.