instruction: Create a Dockerfile for workloads
output: ```dockerfile
  From Message
   ---- ------ ---- ---- -------
   Normal Scheduled 42s default-scheduler Successfully assigned simmemleak-hra99 to kubernetes-node-tf0f
   Normal Pulled 41s kubelet Container image "saadali/simmemleak:latest" already present on machine
   Normal Created 41s kubelet Created container simmemleak
   Normal Started 40s kubelet Started container simmemleak
   Normal Killing 32s kubelet Killing container with id ead3fb35-5cf5-44ed-9ae1-488115be66c6: Need to kill Pod
  In the preceding example, the Restart Count: 5 indicates that the simmemleak
  container in the Pod was terminated and restarted five times (so far).
  The OOMKilled reason shows that the container tried to use more memory than its limit.
  Your next step might be to check the application code for a memory leak. If you
  find that the application is behaving how you expect, consider setting a higher
  memory limit (and possibly request) for that container.
  What's next
  
  Get hands-on experience assigning Memory resources to containers and Pods.
  Get hands-on experience assigning CPU resources to containers and Pods.
  Read how the API reference defines a container
  and its resource requirements
  Read about project quotas in XFS
  Read more about the kube-scheduler configuration reference (v1)
  Read more about Quality of Service classes for Pods
  
  Feedback
  Was this page helpful?
  Yes
  No
  
   Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on
  
   Stack Overflow.
   Open an issue in the GitHub Repository if you want to
  
   report a problem
   or
  
   suggest an improvement.
  
   Last modified May 06, 2024 at 10:52 AM PST: clarify CPU and memory limit enforcement differences (0666011822)
  
    Create child page
   Create documentation issue
   Print entire section
  
  Requests and limits
  Resource types
  Resource requests and limits of Pod and container
  Resource units in Kubernetes
  
  CPU resource units
  Memory resource units
  
  Container resources example
  How Pods with resource requests are scheduled
  How Kubernetes applies resource requests and limits
  
  Monitoring compute & memory resource usage
  Considerations for memory backed emptyDir volumes
  
  Local ephemeral storage
  
  Configurations for local ephemeral storage
  Setting requests and limits for local ephemeral storage
  How Pods with ephemeral-storage requests are scheduled
  Ephemeral storage consumption management
  
  Extended resources
  
  Managing extended resources
  Consuming extended resources
  
  PID limiting
  Troubleshooting
  
  My Pods are pending with event message FailedScheduling
  My container is terminated
  
  What's next
  
  © 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
  © 2025 The Linux Foundation ®. ICP license: 京ICP备17074266号-3
  ```