How to increase the Container memory

Gopi Krishna Ajjampudi 1 Reputation point
2021-04-22T09:48:33.687+00:00

I was trying to deploy our java application to Azure using kubernetes. I am able to run it local docker repository. But when I push the image to Azure and trying to create container using yaml configuration file the container gets created but with errors. Kindly update how to increase the size of the container.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 15,256 Reputation points MVP Volunteer Moderator
    2021-04-22T13:15:16.067+00:00

    Hi @Gopi Krishna Ajjampudi

    Azure Container Instances allocates resources such as CPUs, memory to a multi-container group by adding the resource requests of the instances in the group.

    Availability of compute, memory, and storage resources for Azure Container Instances varies by region and operating system.
    Use the List Usage API to review current quota usage in a region for a subscription.

    The maximum resources in a region are different depending on your deployment. For example, a region may have a different maximum CPU and memory size in an Azure virtual network deployment than for a general deployment. That same region may also have a different set of maximum values for a deployment with GPU resources. Verify your deployment type before checking the below tables for the maximum values in your region.
    https://learn.microsoft.com/en-us/azure/container-instances/container-instances-region-availability

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

  2. Kasun Rajapakse 431 Reputation points
    2021-04-29T08:36:22.947+00:00

    If your running on AKS you can use limits and requests to the pod containers. This will allocate the requested memory and CPU capacity.

    Is it possible for you to share the error or description of the pod by using below

    kubeclt describe pod <pod name > -n <namespace>

    Please refer following for more details on limits and requests
    https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.