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-aks
3,569
questions
255
votes
20
answers
462k
views
How to copy files from kubernetes Pods to local system
I'm trying to copy files from Kubernetes Pods to my local system. I am getting the below error while running following command:
kubectl cp aks-ssh2-6cd4948f6f-fp9tl:/home/azureuser/test.cap ./test....
97
votes
6
answers
121k
views
UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
Yesterday, I stopped a Helm upgrade when it was running on a release pipeline in Azure DevOps and the followings deployments failed.
I tried to see the chart that has failed with the aim of delete it ...
55
votes
19
answers
169k
views
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it
Am working on Azure Kubernates where we can store Docker Images in Azure. Here am trying to check my kubectl version, then am getting
Unable to connect to the server: dial tcp [::1]:8080: ...
38
votes
3
answers
83k
views
Finding out disk space of Kubernetes node
This is a total noob Kubernetes question. I have searched for this, but can't seem to find the exact answer. But that may just come down to not having a total understanding of Kubernetes. I have ...
28
votes
6
answers
17k
views
Stop all compute in AKS (Azure Managed Kubernetes)
I have created a managed Kubernetes cluster in Azure, but it's only for learning purposes and so I only want to pay for the compute whilst I'm actually using it.
Is there a easy way to gracefully ...
28
votes
8
answers
117k
views
Keep running into "exceeded its progress dead line" despite changing progressDeadlineSeconds
I'm new AKS, ACR, and DevOps Pipelines and I'm trying to setup a CI/CD pipeline.
I have a resource group setup that has both AKS and ACR in it. AKS is using Standard_B2s and only one node at this ...
26
votes
9
answers
37k
views
Access denied. Needs Use permissions for pool Default to perform the action
I get following error when trying to save a release pipeline on Azure dev. What exact permissions do I need to ask from my administrator?
Access denied. <<user id>> needs Use permissions ...
26
votes
5
answers
21k
views
terraform helm release timeout while waiting for condition
I'm using terraform to provision some resources in azure and I can't seem to get helm to install nginx-ingress because it timeouts waiting for condition
helm_release.nginx_ingress: 1 error(s) ...
24
votes
17
answers
82k
views
Unable to connect to the server: dial tcp: lookup <Server Location>: no such host
I'm beginning to build out a kubernetes cluster for our applications. We are using Azure for cloud services, so my K8s cluster is built using AKS. The AKs cluster was created using the portal ...
22
votes
4
answers
36k
views
invalid from flag value build: pull access denied for build, repository does not exist or may require 'docker login'
I am trying to build a simple docker console project at azure DevOps pipeline, but i am unable to build the project.
When i try to copy the code i get this error:
invalid from flag value build: ...
21
votes
3
answers
27k
views
Helm Release stuck in Uninstalling state
I was trying to uninstall a helm release in my AKS cluster using helm uninstall RELEASE_NAME but seems like it failed. The failure happened because for some reason all of the nodes in my cluster went ...
21
votes
3
answers
13k
views
How to Integrate GitLab-Ci w/ Azure Kubernetes + Kubectl + ACR for Deployments?
Our previous GitLab based CI/CD utilized an Authenticated curl request to a specific REST API endpoint to trigger the redeployment of an updated container to our service, if you use something similar ...
17
votes
5
answers
41k
views
kubectl - How to restart a deployment (or all deployment)
We have an AKS cluster and sometimes we end up with an issue where a deployment needs a restart (e.g. cached data has been updated and we want to refresh it or there is corrupt cache data we want to ...
17
votes
2
answers
7k
views
Azure DevOp Pipelines authentication to AKS with Azure AD RBAC configured?
We have configured our Azure Kubernetes Clusters to use Azure Active Directory RBAC. This means when using kubectl we need to first authenticate as an AD user (usually done through manually completing ...
16
votes
4
answers
21k
views
How to give permissions to AKS to access ACR via terraform?
Question and details
How can I allow a Kubernetes cluster in Azure to talk to an Azure Container Registry via terraform?
I want to load custom images from my Azure Container Registry. Unfortunately,...
16
votes
2
answers
26k
views
NGINX ingress controller timing out request after 60s
When a request takes over 60s to respond it seems that the ingress controller will bounce
From what I can see our NGINX ingress controller returns 504 to the client after a request takes more than ...
15
votes
7
answers
13k
views
Count of nodes which do not have a label?
How do I use kubectl to get K8S nodes which do not have any labels?
Also , how do I fetch K8S pods which do not have any labels?
15
votes
1
answer
10k
views
What is hcp-tunnelfront?
I have just installed my kubernetes cluster on azure using AKS. I have not installed anything and I noticed that the 'tunnelfront' pod was running:
I have tried to find out what this pod is for and ...
15
votes
2
answers
8k
views
How to add an Azure AKS Kubernetes Cluster self-signed CA to GitLab CI/CD Kubernetes integration?
I'm trying to add my Azure AKS Kubernetes cluster to my GitLab CI/CD Kubernetes integration.
I can execute kubectl commands on the cluster from my pc, after I ran this command:
az aks get-...
15
votes
4
answers
17k
views
'Unable to connect Net/http: TLS handshake timeout' — Why can't Kubectl connect to Azure Kubernetes server? (AKS)
My question (to MS and anyone else) is: Why is this issue occurring and what work around can be implemented by the users / customers themselves as opposed to by Microsoft Support?
There have ...
14
votes
3
answers
15k
views
How to kubernetes "kubectl apply" does not update existing deployments
I have a .NET-core web application. This is deployed to an Azure Container Registry. I deploy this to my Azure Kubernetes Service using
kubectl apply -f testdeployment.yaml
with the yaml-file ...
14
votes
4
answers
12k
views
How can I find the service principal secret of my AKS cluster?
Okay, so I messed up, I accidentally ran az ad sp reset-credentials against the Service Principal that our AKS cluster runs under. And now we are getting errors like:
Error creating load balancer (...
13
votes
3
answers
18k
views
How to work a job queue with kubernetes with scaling
I need a scalable queue handling based on docker/python worker. My thought went towards kubernetes. However, I am unsure about the best controller/service.
Based on azure functions I get incoming ...
12
votes
5
answers
48k
views
Kubernetes Persistent Volume Mount not found
I am trying to create and mount a volume but getting stuck.
This part creates the storage:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvclaim2
spec:
accessModes:
- ...
12
votes
1
answer
7k
views
Kubernetes cert-manager not updating certificates after issuer change
I am using cert-manager 0.5.2 to manage Let's Encrypt certificates on our Kubernetes cluster.
I was using the Let's Encrypt staging environment, but have now moved to use their production ...
11
votes
3
answers
15k
views
Custom domain and Azure Kubernetes with ingress controller AKS
I've followed this doc from microsoft Deploy an HTTPS ingress controller on Azure Kubernetes Service (AKS) and have successfully deployed a managed Kubernetes cluster (AKS) with nginx ingress ...
11
votes
2
answers
4k
views
Azure CLI in WSL2 uses Windows home directory
Running this in WSL2 (current folder /home/my-linux-user/):
az aks get-credentials --resource-group my-resource-group --name cluster-name
Outputs:
Merged "cluster-name" as current context in ...
11
votes
3
answers
30k
views
How to roll back a deployment to a previous revision automatically when deployment has crossed 'progressDeadlineSeconds'?
I'm working on deploying a docker image in kubernetes. The first time I deployed the container, I used:
kubectl apply -f <deployment_file>.yaml
and the container was successfully deployed in a ...
11
votes
3
answers
12k
views
cant create a second ingress controller using helm with custom class in Azure k8s cluster
I have created an ingress controller using Helm with default configuration
default nginx-ingress-controller LoadBalancer 10.0.182.128 xx.xxx.xx.90 80:32485/TCP,443:31756/TCP ...
10
votes
2
answers
6k
views
SignalR connection via K8S Ingress
I'm trying to expose a SignalR hub hosted in a Kubernetes (Azure) pod. Basically, the authentication and the handshake steps work fine, but when I trigger some action, all clients connected via the ...
10
votes
3
answers
19k
views
Can't connect from azure resource to Azure database for postgres server
I can't connect from azure resource (aks node) to Azure postgres using pgcli. I also tried directly from node and got the same error message:
FATAL: Client from Azure Virtual Networks is not ...
10
votes
2
answers
6k
views
Changing the default k9s/Kubernetes context
I have 3 contexts set up in k9s (context1, context2, context3). I know I can change the context within k9s by typing :context but how do I change the default context that loads when I open k9s from ...
9
votes
2
answers
18k
views
how to get hold of the azure kubernetes cluster outbound ip address
we have a basic AKS cluster setup and we need to whitelist this AKS outbound ipadress in one of our services, i scanned the AKS cluster setting in Azure portal, i was not able to find any outbound ...
9
votes
2
answers
28k
views
Could not get apiVersions from Kubernetes: Unable to retrieve the complete list of server APIs
While trying to deploy an application got an error as below:
Error: UPGRADE FAILED: could not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs: metrics.k8s.io/...
9
votes
2
answers
13k
views
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 ...
9
votes
2
answers
18k
views
Nginx-ingress-controller fails to start after AKS upgrade to v1.22
We performed our kubernetes cluster upgrade from v1.21 to v1.22. After this operation we discovered that our nginx-ingress-controller deployment’s pods are failing to start with the following error ...
9
votes
2
answers
6k
views
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 ...
9
votes
4
answers
22k
views
Kubernetes HPA on AKS is failing with error 'missing request for cpu'
I am trying to setup HPA for my AKS cluster. Following is the Kubernetes manifest file:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: XXXXXX\tools\kompose.exe
...
9
votes
2
answers
8k
views
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 ...
9
votes
1
answer
15k
views
What Azure Kubernetes (AKS) 'Time-out' happens to disconnect connections in/out of a Pod in my Cluster?
I have a working Cluster with services that all respond behind a helm installed Ingress nGinx running on Azure AKS. This ended up being Azure specific.
My question is:
Why does my connection to ...
9
votes
1
answer
11k
views
How can I query CPU and memory usage per container in AKS?
So, I can plainly see per container stats in the insights tab of AKS. These must come from somewhere, but I can only find per node stats when querying logs/metrics. How can I query this (in order to ...
9
votes
3
answers
18k
views
kubectl logs returns nothing (blank)
kubectl logs web-deployment-76789f7f64-s2b4r
returns nothing! The console prompt returns without error.
I have a pod which is in a CrashLoopbackOff cycle (but am unable to diagnose it) -->
web-...
9
votes
1
answer
22k
views
How to fix 'container runtime is down,PLEG is not healthy'
I have aks with one kubernetes cluster having 2 nodes. Each node has about 6-7 pod running with 2 containers for each pod. One container is my docker image and the other is created by istio for its ...
9
votes
3
answers
2k
views
azure aks not able to pull images from acr
it was a working set up and no manual changes were made.
when we are trying to deploy application on aks; it fails to pull an image from the acr.
as per kubectl describe po output:
Failed to pull ...
8
votes
3
answers
4k
views
Azure AKS Public IP in Non-standard Resource Group
I've been trying to manage an Azure Kubernetes Service (AKS) instance via Terraform. When I create the AKS instance via the Azure CLI per this MS tutorial, then install an ingress controller with a ...
8
votes
4
answers
12k
views
How to set a Domain Name for a Load Balancer Service on AKS
What is the process to assign a DNS record to a Load balanced service.
I have created a simple service of Type LoadBalancer on AKS. The service gets a external IP assigned and points to pods hosting ...
8
votes
3
answers
9k
views
Shell (ssh) into Azure AKS (Kubernetes) cluster worker node
I have a Kubernetes cluster in Azure using AKS and I'd like to 'login' to one of the nodes. The nodes do not have a public IP.
Is there a way to accomplish this?
8
votes
3
answers
2k
views
HTTP_PORTS when running ASP.NET 8 container in AKS
In the logs of a ASP.NET 8 container I find this entry
[22:38:50 WRN] Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://+:80'. # {"EventId": {...
8
votes
2
answers
8k
views
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 ...
8
votes
2
answers
2k
views
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 ...