Before creating an object in Kubernetes (Service, ReplicationController, etc.), I\'d like to test that the JSON or YAML specification of the object is valid. But I don\'t want t
This works for me (kubernetes 1.7 and 1.9):
kubectl apply --validate=true --dry-run=true --filename=task.yaml