yaml file
apiVersion: apps/v1
kind: Deployment
metatdata:
name: pod-prefshch-NoExecute
labels:
run: myapp3
namespace: default
spec:
replicas: 2
selector:
matchLabels:
run: myapp3
tepmplate:
metatdata:
labels:
run: myapp3
spec:
containers:
- name: pod-prefshch-NoExecute
image: nginx
resources:
requests:
memory: “64Mi”
cpu: “250m”
limits:
memory: “128Mi”
cpu: “500m”
tolerations:
- key: “env”
operator: “Equal”
value: “staging”
effect: “NoExecute”
while deploying yaml file I am getting error
kubectl apply -f taint-presche.yaml
error: error when retrieving current configuration of:
Resource: “apps/v1, Resource=deployments”, GroupVersionKind: “apps/v1, Kind=Deployment”
Name: “”, Namespace: “default”
from server for: “taint-presche.yaml”: resource name may not be empty
folks need your comments where I am doing mistake