Estou tomando o erro ao executar o comando kubectl apply -f: PS C:\Users\User\Kubernetes-alura> kubectl apply -f .\primeiro-pod.yaml
error: error validating ".\primeiro-pod.yaml": error validating data: [ValidationError(Pod): unknown field "containers" in io.k8s.api.core.v1.Pod, ValidationError(Pod): unknown field "name" in io.k8s.api.core.v1.Pod]; if you choose to ignore these errors, turn validation off with --validate=false
Arquivo YAML
apiVersion: v1 kind: Pod metadata: name: primeiro-pod-declarativo spec: containers:
- name: nginx-container image: nginx:latest