Skip to content

Commit

Permalink
Update deployments-loadbalancing.md : remove -f option deletion wild-…
Browse files Browse the repository at this point in the history
…cards

Error when running:
```
$ kubectl delete -f *.yaml
error: when paths, URLs, or stdin is provided as input, you may not specify resource arguments as well
```
works:
```
$ kubectl delete *.yaml
error: the server doesn't have a resource type "backend-deployment"
```
  • Loading branch information
bicschneider authored Aug 15, 2023
1 parent f87cfec commit cfa2459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployments-loadbalancing.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ kubectl delete -f frontend-svc.yaml
kubectl delete -f backend-svc.yaml
```

> :bulb: If you ever want to delete all resources from a particular directory, you can use a shell wildcard: `kubectl delete -f *.yaml` which will point at **all** `.yaml` files in that directory!
> :bulb: If you ever want to delete all resources from a particular directory, you can use a shell wildcard: `kubectl delete *.yaml` which will point at **all** `.yaml` files in that directory!
# Extra Exercise

Expand Down

0 comments on commit cfa2459

Please sign in to comment.