创建了一个资源限制的yaml文件
apiVersion: v1
kind: Pod
metadata:
name: pod-resources
namespace: dev
spec:
containers:
- name: nginx
image: nginx:1.17.1
resources:
limits:
cpu: "2"
memeory: "10G"
requests:
cpu: "1"
memory: "60M"
说是
cpu
:
core
数,可以为整数或小数
memory
: 内存大小,可以使用
Gi
、
Mi
、
G
、
M
等形式
但是试了几次之后,还是报以下错误
[root@master ~]# kubectl create -f pod-resources.yaml
The Pod "pod-resources" is invalid:
* spec.containers[0].resources.limits[memeory]: Invalid value: "memeory": must be a standard resource type or fully qualified
* spec.containers[0].resources.limits[memeory]: Invalid value: "memeory": must be a standard resource for containers
* spec.containers[0].resources.requests[memeory]: Invalid value: "memeory": must be a standard resource type or fully qualified
* spec.containers[0].resources.requests[memeory]: Invalid value: "memeory": must be a standard resource for containers
网上也没有解决办法,请各位大佬帮助