Apresenta um erro ao realizar o delete passando arquivo como parametro.
arquivo YML
apiVersion: v1
kind: Pod
metadata:
name: frist-pod
spec:
containers:
- name: container-pod-1
image: nginx:stable
Comando:
kubectl delete pod -f .\kubernet-pod.yaml
Erro:
error: when paths, URLs, or stdin is provided as input, you may not specify resource arguments as well
Versão kubernete
kubectl version --client
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"windows/amd64"}
Já o comando de criar o pod funciona normal, bem como o delete utilizando o name do pod.