Giter VIP home page Giter VIP logo

Comments (9)

pkouzmitcheu avatar pkouzmitcheu commented on July 29, 2024 2

Thanks a lot @gRizzlyGR @l1gh7w34ver , only applying both recommendationed works for me:

  1. updated CPU to 500m
  2. set nginx to 1.25.3

from learn-terraform-deploy-nginx-kubernetes-provider.

bsteveb avatar bsteveb commented on July 29, 2024

I am also getting the same error!

from learn-terraform-deploy-nginx-kubernetes-provider.

bsteveb avatar bsteveb commented on July 29, 2024

did you find a solution? thanks:)

from learn-terraform-deploy-nginx-kubernetes-provider.

ncdejito avatar ncdejito commented on July 29, 2024

are you on WSL2? this fixed it for me. was able to diagnose it by running this command

$ kubectl describe pod scalable-nginx-example-xxxx-xxxx
Name:         scalable-nginx-example-9cbcdbf9f-9nx88
Namespace:    default
...
Containers:
  example:
    ...
    Last State:     Terminated
      Reason:       Error
      Exit Code:    139 # <====
      Started:      Wed, 20 Apr 2022 13:36:49 +0800
      Finished:     Wed, 20 Apr 2022 13:36:49 +0800

from learn-terraform-deploy-nginx-kubernetes-provider.

Keshav-Thakur avatar Keshav-Thakur commented on July 29, 2024

Same issue, how to resolve it.

from learn-terraform-deploy-nginx-kubernetes-provider.

ProboticsX avatar ProboticsX commented on July 29, 2024

Hey, were you able to resolve the issue?

from learn-terraform-deploy-nginx-kubernetes-provider.

gRizzlyGR avatar gRizzlyGR commented on July 29, 2024

Had the same problem. I fixed this by setting the CPU in the limits to 500m. Originally it was 0.5 that does not seem right. This is the working deployment:

resource "kubernetes_deployment" "nginx" {
  metadata {
    name = "scalable-nginx-example"
    labels = {
      App = "ScalableNginxExample"
    }
  }

  spec {
    replicas = 2
    selector {
      match_labels = {
        App = "ScalableNginxExample"
      }
    }
    template {
      metadata {
        labels = {
          App = "ScalableNginxExample"
        }
      }
      spec {
        container {
          image = "nginx:1.7.8"
          name  = "example"

          port {
            container_port = 80
          }

          resources {
            limits = {
              cpu    = "500m"
              memory = "512Mi"
            }
            requests = {
              cpu    = "250m"
              memory = "50Mi"
            }
          }
        }
      }
    }
  }
}

from learn-terraform-deploy-nginx-kubernetes-provider.

reshmagcp avatar reshmagcp commented on July 29, 2024

I face the same issue. @gRizzlyGR I changed the resource limit and still it is showing the same error. Can any one please help me here? Thanks in advance.

from learn-terraform-deploy-nginx-kubernetes-provider.

l1gh7w34ver avatar l1gh7w34ver commented on July 29, 2024

@reshmagcp or if anyone is still facing that issue, for me updating the value of nginx to an up-to-date image (for me it was 1.24.0) did work, when otherwise it wouldn't.
I also changed the cpu value as suggested by @gRizzlyGR , but at first I still faced the issue. But referencing the up-to-date nginx image worked.

from learn-terraform-deploy-nginx-kubernetes-provider.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.