Use apply to create a service:

kubectl apply -f basic-webserver.yaml

Get infos about an deployment:

kubectl describe deployment <name>