kubectl create -f myfirstpod.yaml
error: error validating "myfirstpod.yaml": error validating data: ValidationError(Pod.spec.containers[0].ports[0]): invalid type for io.k8s.api.core.v1.ContainerPort: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false
This is the error i ran into I searched alot but could not find the answer to this. I think that my yaml format is right.