From 177fb0d6f2065794b9c4394b00da3177bbfa51e7 Mon Sep 17 00:00:00 2001 From: ramnar Date: Sun, 25 Oct 2020 16:05:29 +0530 Subject: [PATCH] implementing review comments implementing review comments --- .../en/docs/reference/kubectl/cheatsheet.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index dae5e8c697..283c17a436 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -85,14 +85,16 @@ Kubernetes manifests can be defined in YAML or JSON. The file extension `.yaml`, `.yml`, and `.json` can be used. ```bash -kubectl apply -f ./my-manifest.yaml # create resource(s) -kubectl apply -f ./my1.yaml -f ./my2.yaml # create from multiple files -kubectl apply -f ./dir # create resource(s) in all manifest files in dir -kubectl apply -f https://git.io/vPieo # create resource(s) from url -kubectl create deployment nginx --image=nginx # start a single instance of nginx -kubectl create job hello --image=busybox -- echo "Hello World" # create a job which prints "hello world" -kubectl create cronjob hello --image=busybox --schedule="*/1 * * * *" -- echo "Hello World" # create a cron job which prints "hello world" for every minute -kubectl explain pods # get the documentation for pod manifests +kubectl apply -f ./my-manifest.yaml # create resource(s) +kubectl apply -f ./my1.yaml -f ./my2.yaml # create from multiple files +kubectl apply -f ./dir # create resource(s) in all manifest files in dir +kubectl apply -f https://git.io/vPieo # create resource(s) from url +kubectl create deployment nginx --image=nginx # start a single instance of nginx +kubectl create job hello \ # create a job which prints "hello world" +--image=busybox -- echo "Hello World" +kubectl create cronjob hello --image=busybox \ # create a cron job which prints "hello world" for every minute +--schedule="*/1 * * * *" -- echo "Hello World" +kubectl explain pods # get the documentation for pod manifests # Create multiple YAML objects from stdin cat <