From 3bfc14c5f7f7d90dc685e142219e317d32df101e Mon Sep 17 00:00:00 2001 From: fc92 <38385756+fc92@users.noreply.github.com> Date: Sat, 10 Oct 2020 23:07:45 +0200 Subject: [PATCH] update server-side dry run for recent kubectl Error message : $ kubectl apply -f web.yaml --server-dry-run --validate=false -o yaml Error: unknown flag: --server-dry-run See 'kubectl apply --help' for usage. Doc : --dry-run='none': Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. --- slides/k8s/dryrun.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/k8s/dryrun.md b/slides/k8s/dryrun.md index f5a40c67..bdeb019d 100644 --- a/slides/k8s/dryrun.md +++ b/slides/k8s/dryrun.md @@ -124,7 +124,7 @@ The resulting YAML doesn't represent a valid DaemonSet. - Try the same YAML file as earlier, with server-side dry run: ```bash - kubectl apply -f web.yaml --server-dry-run --validate=false -o yaml + kubectl apply -f web.yaml --dry-run=server --validate=false -o yaml ``` ]