azure-kubernetes

Why memory usage is greater than what I set in Kubernetes's node?

懵懂的女人 提交于 2019-12-07 07:01:08
问题 I allocated resource to 1 pod only with 650MB/30% of memory (with other built-in pods, limit memory is 69% only) However, when the pod handling process, the usage of pod is within 650MB but overall usage of node is 94%. Why does it happen because it supposed to have upper limit of 69%? Is it due to other built-in pods which did not set limit? How to prevent this as sometimes my pod with error if usage of Memory > 100%? My allocation setting ( kubectl describe nodes ): Memory usage of

How can I find the service principal secret of my AKS cluster?

泪湿孤枕 提交于 2019-12-06 19:29:44
问题 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 (will retry): error getting LB for service test/admin-api: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/****/resourceGroups/MC_****/providers/Microsoft.Network/loadBalancers?api-version=2017-09-01: StatusCode=0 --

How to fix “Kibana server is not ready yet” error when using AKS

♀尐吖头ヾ 提交于 2019-12-06 11:08:45
I'm setting up ELK services in Azure Kubernetes Service. But I only see this error: "Kibana server is not ready yet" I'm using Helm to install the stable/elastic-stack release without any changes (default for everything) in AKS. helm install --name elk stable/elastic-stack And I also added an ingress controller to expose the Kibana server to public. However, I only see "Kibana server is not ready yet" error. I've checked the Kibana pod is running, as well as the ElasticSearch. As a newbie in Kubernetes, I have no idea about how to find the error log in Kibana instance. Can anyone help me on

Azure: Microsoft.Compute resource provider stuck 'Registering' for about a day

柔情痞子 提交于 2019-12-06 04:03:28
问题 I've tried un-registering and re-registering and it just keeps getting stuck. No logs I can see so I'm not really sure what to do... Has anyone experienced this before? 回答1: It appears that there was some issue, which is now mitigated. Check your Service Health/Resource Health page. The ‘Service Health’ - Service issues view shows any ongoing problems in Azure services that are impacting your resources. You can understand when the issue began, and what services and regions are impacted. You

How to work a job queue with kubernetes with scaling

随声附和 提交于 2019-12-06 00:36:41
问题 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 http traffic adding simple messages to a storage queue. Those messages need to be worked on and the results fed back into a result queue. To process those queue messages I developed python code looping the queue and working on those jobs. After each successful loop, the message will be removed from

Why memory usage is greater than what I set in Kubernetes's node?

谁说胖子不能爱 提交于 2019-12-05 12:18:45
I allocated resource to 1 pod only with 650MB/30% of memory (with other built-in pods, limit memory is 69% only) However, when the pod handling process, the usage of pod is within 650MB but overall usage of node is 94%. Why does it happen because it supposed to have upper limit of 69%? Is it due to other built-in pods which did not set limit? How to prevent this as sometimes my pod with error if usage of Memory > 100%? My allocation setting ( kubectl describe nodes ): Memory usage of Kubernetes Node and Pod when idle: kubectl top nodes kubectl top pods Memory usage of Kubernetes Node and Pod

Azure: Microsoft.Compute resource provider stuck 'Registering' for about a day

吃可爱长大的小学妹 提交于 2019-12-04 09:11:54
I've tried un-registering and re-registering and it just keeps getting stuck. No logs I can see so I'm not really sure what to do... Has anyone experienced this before? It appears that there was some issue, which is now mitigated. Check your Service Health/Resource Health page. The ‘Service Health’ - Service issues view shows any ongoing problems in Azure services that are impacting your resources. You can understand when the issue began, and what services and regions are impacted. You can also read the most recent update to understand what Azure is doing to resolve the issue. Resource health

Azure DevOp Pipelines authentication to AKS with Azure AD RBAC configured?

烈酒焚心 提交于 2019-12-03 07:04:10
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 device code authentication via the web browser). We have configured this almost exactly as per the MSDN article Integrate Azure Active Directory with Azure Kubernetes Service . The issue is that this authentication is now also required for Kubernetes build/release tasks in Azure DevOp Pipelines, for example when we run kubectl apply: 2019-01-02T08:48:21.2070286Z ##[section]Starting: kubectl apply

Deploying a container from ACR to AKS

一笑奈何 提交于 2019-12-02 06:41:54
I have a Container with a very simple Web App uploaded to an Azure Container Registry. I have an AKS cluster created. Now I want to deploy my container into AKS. I've found a number of tutorials on this, but they all seem to refer to YAML files that have very little, or no, explanation. I, therefore, have two questions: Is it necessary to use a YAML file to achieve this (kubectl create -f myyaml.yml)? (If not, what are the alternatives) Is there any documentation for exactly what needs to be in these files, and what those commands are compatible with (for example, I've noticed that 'kind:

Kubernetes and AAD authentication

瘦欲@ 提交于 2019-12-01 20:50:32
问题 On configured AKS there is docker container with application that is using AAD authentication. Based on this article there is also configured ingress. API is working well. When I add to Azure Active Directory application registration reply URL with https prefix I receive error "The reply url specified in the request does not match the reply urls configured for the application". And I see that in browser address line redirect_uri is starting with http. When I add reply URL that is starting