Help! I am getting an error

Hi All,

I am getting the above error message when I try to edit the resource limits. Kindly assist me in where am I going wrong and what action needs to be taken.

Thank you in advance

Please try to delete the pod:
Get the exact pod name using
$ kubectl get pods
Then delete it using
$ kubectl delete pod elephant
Then create the new pod with the right limits, using the below YAML file
$ vi pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: elephant
namespace: default
spec:
containers:

  • args:
    • –vm
    • “1”
    • –vm-bytes
    • 15M
    • –vm-hang
    • “1”
      command:
    • stress
      image: polinux/stress
      name: mem-stress
      resources:
      limits:
      memory: 20Mi
      requests:
      memory: 5Mi

$ kubectl apply pod.yaml