I have a yaml file which works if I deploy it using
kubectl apply -f myComponents.yaml
My question is, is there a way to deploy just one component from this YAML? For example, if my YAML has both deployment and service and I just want to deploy the service
I am looking for something like
kubectl apply -f myComponents.yaml Service