Hi, I know there are two ways to delete a deployment which is created by yaml config file:
kubectl delete -f nginx-deployment.yaml
kubectl delete deployment nginx-deployment
what’s the difference between them?
Hi, I know there are two ways to delete a deployment which is created by yaml config file:
kubectl delete -f nginx-deployment.yaml
kubectl delete deployment nginx-deployment
what’s the difference between them?
Nothing. Just different ways to specify which deployment.
Of course, a file can have more than one object in it, so that’s a potential difference.