From cfa245926d07d5f8fa51b378d519acaf01c62384 Mon Sep 17 00:00:00 2001 From: Claus Schneider Date: Tue, 15 Aug 2023 15:36:02 +0200 Subject: [PATCH] Update deployments-loadbalancing.md : remove -f option deletion wild-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" ``` --- deployments-loadbalancing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments-loadbalancing.md b/deployments-loadbalancing.md index 9c6ff99..df467a0 100644 --- a/deployments-loadbalancing.md +++ b/deployments-loadbalancing.md @@ -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