Comments (9)
Thanks a lot @gRizzlyGR @l1gh7w34ver , only applying both recommendationed works for me:
- updated CPU to 500m
- set nginx to 1.25.3
from learn-terraform-deploy-nginx-kubernetes-provider.
I am also getting the same error!
from learn-terraform-deploy-nginx-kubernetes-provider.
did you find a solution? thanks:)
from learn-terraform-deploy-nginx-kubernetes-provider.
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.
Same issue, how to resolve it.
from learn-terraform-deploy-nginx-kubernetes-provider.
Hey, were you able to resolve the issue?
from learn-terraform-deploy-nginx-kubernetes-provider.
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-terraform-deploy-nginx-kubernetes-provider.