Kubernetes上的API部署,未创建Pod

时间:2020-11-05 11:33:18

标签: kubernetes

我正在kubernetes上部署APi,但POD并没有出错:

unable to ensure pod container exists: failed to create container for [kubepods burstable pod63951ed1-a42f-44c9-9f85-fbb4c06a3e83] : mkdir /sys/fs/cgroup/memory/kubepods/burstable/pod63951ed1-a42f-44c9-9f85-fbb4c06a3e83: cannot allocate memory

YAML文件:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: abc
  labels:
    app: abc
spec:
  replicas: 3
  selector:
    matchLabels:
      app: vaccndev
  template:
    metadata:
      labels:
        name: abc
        app: abc
    spec:
      hostname: abc
      containers:
      - name: abc
        image: docker.repo1.xyz.com/va_nonuser/server:Dev
        imagePullPolicy: IfNotPresent
        resources:
            limits:
              cpu: 1
              memory: 2Gi
            requests:
              cpu: 1
              memory: 1Gi

0 个答案:

没有答案