From 48b37e2c1ad3b680b26868f9bf705c30efb5b349 Mon Sep 17 00:00:00 2001 From: peefy Date: Thu, 12 Oct 2023 21:19:15 +0800 Subject: [PATCH] fix: wrong kubectl kcl apply command --- blog/2023-10-11-biweekly-newsletter/index.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/blog/2023-10-11-biweekly-newsletter/index.md b/blog/2023-10-11-biweekly-newsletter/index.md index fce1824d..7e27df1e 100644 --- a/blog/2023-10-11-biweekly-newsletter/index.md +++ b/blog/2023-10-11-biweekly-newsletter/index.md @@ -121,10 +121,15 @@ You can refer to the corresponding examples to incorporate the above configurati ``` Using the Kubectl KCL tool for resource validation on the client-side, we will get the following result: - ```shell - $ kubectl kcl check -f manifests.yaml - - A validation that prevents the creation of Service resources of type `LoadBalancer`, for Service: my-service - ``` +```shell +kubectl kcl apply -f manifests.yaml +``` + +The output is + +``` +A validation that prevents the creation of Service resources of type `LoadBalancer`, for Service: my-service +``` ## Resources