Giter Club home page Giter Club logo

Comments (2)

taylorturner avatar taylorturner commented on June 22, 2024 1

In the closed issues someone recommended removing the cpu and memory config from the pod yaml. It worked for me.
#17

from kubernetes-in-action.

guanlinz avatar guanlinz commented on June 22, 2024

I was using EKS on AWS to deploy the downward-env pod, there were several errors poped up.

  1. It shows some thing wrong with the CNI
Events:
  Type     Reason                  Age   From               Message
  ----     ------                  ----  ----               -------
  Normal   Scheduled               6s    default-scheduler  Successfully assigned default/downward to ip-172-31-14-144.cn-north-1.compute.internal
  Warning  FailedCreatePodSandBox  0s    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "865e1d36f580b219c9d4aa21b7fb4d9875132a45666aaa8cf0042c6b615715be" network for pod "downward": networkPlugin cni failed to set up pod "downward_default" network: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container "865e1d36f580b219c9d4aa21b7fb4d9875132a45666aaa8cf0042c6b615715be"

I thought there must be something wrong with my pod specification file, so I copied directly from the github, but got some memory too low error shows in 2)

  1. Kubernets still complains about the pod memory too low
Minimum memory limit allowed is 6MB

So I modified the memory limit parameter in the pod specification file, it fixed the issue for me.

spec:
  containers:
  - name: main
    image: busybox
    command: ["sleep", "9999999"]
    resources:
      requests:
        cpu: 15m
        memory: 60Mi
      limits:
        cpu: 100m
        memory: 60Mi

from kubernetes-in-action.

Related Issues (20)

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.