Skip to content

Commit

Permalink
Fixing yaml (#10541)
Browse files Browse the repository at this point in the history
The current YAML doesn't work since hugepages requires you to include memory and/or CPU limits as well, or you get the error: "HugePages require cpu or memory".
  • Loading branch information
cliffburdick authored and k8s-ci-robot committed Nov 19, 2018
1 parent 8790759 commit b5a09f6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Huge pages can be consumed via container level resource requirements using the
resource name `hugepages-<size>`, where size is the most compact binary notation
using integer values supported on a particular node. For example, if a node
supports 2048KiB page sizes, it will expose a schedulable resource
`hugepages-2Mi`. Unlike CPU or memory, huge pages do not support overcommit.
`hugepages-2Mi`. Unlike CPU or memory, huge pages do not support overcommit. Note
that when requesting hugepage resources, either memory or CPU resources must
be requested as well.

```yaml
apiVersion: v1
Expand All @@ -53,6 +55,9 @@ spec:
resources:
limits:
hugepages-2Mi: 100Mi
memory: 100Mi
requests:
memory: 100Mi
volumes:
- name: hugepage
emptyDir:
Expand Down

0 comments on commit b5a09f6

Please sign in to comment.