Skip to content

Instantly share code, notes, and snippets.

@dkeightley
Created June 1, 2019 05:14
Show Gist options
  • Save dkeightley/6f5a0e929b5f860d0c94690f6ab8b0dc to your computer and use it in GitHub Desktop.
Save dkeightley/6f5a0e929b5f860d0c94690f6ab8b0dc to your computer and use it in GitHub Desktop.
Example of an Nginx Pod with CPU/Mem requests and limits
apiVersion: v1
kind: Pod
metadata:
name: nginx-requests-limits
spec:
containers:
- name: nginx-requests-limits
image: nginx
resources:
requests:
memory: "128Mi"
cpu: .5
limits:
memory: "256Mi"
cpu: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment