Skip to content

Instantly share code, notes, and snippets.

@jaclu010
Created September 28, 2020 13:14
Show Gist options
  • Save jaclu010/8e0553f1b3aa2050fbf5bf6d501cde7b to your computer and use it in GitHub Desktop.
Save jaclu010/8e0553f1b3aa2050fbf5bf6d501cde7b to your computer and use it in GitHub Desktop.
An example of how to use the resources tag in a kubernetes workload
apiVersion: v1
kind: Pod
metadata:
name: frontend
spec:
...
containers:
- name: app
...
resources: <------
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "1000m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment