Questions tagged [azure-aks]

Azure Kubernetes Service(AKS) is a way to launch and manage Kubernetes within the Azure cloud. Use with the [azure] tag

Azure Kubernetes Service (AKS) manages your hosted Kubernetes environment, making it quick and easy to deploy and manage containerized applications without container orchestration expertise. It also eliminates the burden of ongoing operations and maintenance by provisioning, upgrading, and scaling resources on demand, without taking your applications offline.

https://learn.microsoft.com/en-us/azure/aks/

3395 questions
8
votes
2 answers

What are the Advantages of using Kubernetes Ingress in Azure AKS

My understanding is that setting the Service type to LoadBalancer creates a new Azure Load Balancer and assigns an IP address to the Service. Does this mean that I can have multiple Services using port 80? If the app behind my Service (an ASP.NET…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
8
votes
2 answers

Configuring an AKS load balancer for HTTPS access

I'm porting an application that was originally developed for the AWS Fargate container service to AKS under Azure. In the AWS implementation an application load balancer is created and placed in front of the UI microservice. This load balancer is…
user3280383
  • 465
  • 2
  • 6
  • 17
8
votes
1 answer

Liveness probe for RabbitMQ Client (Consumer)

I would like to know/get opinions on how to setup liveness probe for a RabbitMQ queue consumer. I am not sure how to verify if consumer is still processing messages from the queue. I have already tried searching for some clues over the internet but…
Alpesh
  • 606
  • 6
  • 15
8
votes
2 answers

How to get HTTPS on AKS without ingress

My problem is simple. I have an AKS deployment with a LoadBalancer service that needs to use HTTPS with a certificate. How do I do this? Everything I'm seeing online involves Ingress and nginx-ingress in particular. But my deployment is not a…
Novaterata
  • 4,356
  • 3
  • 29
  • 51
8
votes
2 answers

Multiple apps running in one kubernetes cluster or a clusters for each app

I have some apps in production working in Azure. All these applications belong to the same company and communicate with each other. I want to migrate them to Kubernetes. My question is: What are the best practices in this case and why ? Some peoples…
ivangalbans
  • 470
  • 5
  • 14
7
votes
4 answers

no matches for kind "AdmissionConfiguration" in version "apiserver.config.k8s.io/v1"

I have AKS with kubernetes version 1.23. I want to activate podsecurity on cluster level by setting it via AdmissionConfiguration as explained here: https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/ As…
Matrix
  • 2,399
  • 5
  • 28
  • 53
7
votes
2 answers

Kubernetes hitting 100% CPU on node, but not on pods

I've been having a daily issue with my Kubernetes cluster (running on 1.18) where one of the nodes will go over 100% CPU utilisation, and Kubernetes will fail to connect external visitors to my pods. (A website outage, basically) The strange thing…
alex
  • 1,042
  • 4
  • 18
  • 33
7
votes
1 answer

Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate

In Startup file, I am trying to inject the IHttpContextAccessor in constructor itself. While running the API locally, IHttpContextAccessor is injected successfully in startup class. However when I am deploying the same to Azure kubernetes service,…
Jayesh Tanna
  • 398
  • 5
  • 17
7
votes
1 answer

Kubernetes 137 exit code when using SecurityContext readOnlyRootFilesystem

I am trying to host a web app in a container with read only file system. Whenever I try to configure the root file system as read only through the SecurityContext of the container I get the following error: Ports: 80/TCP, 443/TCP …
Georgi Yankov
  • 411
  • 2
  • 9
7
votes
3 answers

Error while provisioning Terraform subnet using azurerm

Recently i figured out that my AKS cluster holds a subnet which is too small. Therefor im trying to add a second subnet and nodepool which is possible with the Azure CNI nowadays and then create a single proper subnet instead and migrate it…
Dirkos
  • 488
  • 1
  • 10
  • 33
7
votes
1 answer

Permissions error when attaching Azure Disk to AKS pod

I've been battling this error for a few hours now. Found several articles but nothing that has helped so far. My work has been based on the "How-to guide > Configure data volumes > Azure Disk - Static" from…
Andrew C
  • 77
  • 1
  • 5
7
votes
2 answers

kubernetes azure nodes exceed max volume count

I have kubernetes cluster of 4 nodes. according to this https://kubernetes.io/docs/concepts/storage/storage-limits/ azure should have limit of 16 pv per node. Microsoft Azure Disk Storage 16 So I should have 64 volumes available. Although i can…
rigby
  • 1,280
  • 3
  • 13
  • 21
7
votes
1 answer

How to deal with error "dial tcp 10.240.0.4:10250: i/o timeout" to see pod's logs in AKS?

Before I could run this command kubectl logs without issue for many days/versions. However, after I pushed another image and deployed recently, I faced below error: Error from server: Get…
DaiKeung
  • 1,077
  • 1
  • 19
  • 38
7
votes
4 answers

kubernetes networkpolicy allow external traffic to internet only

Im trying to implement network policy in my kubernetes cluster to isolate my pods in a namespace but still allow them to access the internet since im using Azure MFA for authentication. This is what i tried but cant seem to get it working. Ingress…
superset
  • 71
  • 1
  • 2
7
votes
2 answers

Azure AKS cluster node disk type

I have AKS cluster and I would like to check a node disk type. I know there are 4 types of disk at the moment: standard HDD, standard SSD, premium SSD and ultra SSD (in preview). The node itself is set up to be Standard_DS2_v2 (via terraform) but…
sobi3ch
  • 2,555
  • 2
  • 31
  • 41