From 18eb0bfc020b57cc3df2b79b3044014dcd8b5f98 Mon Sep 17 00:00:00 2001 From: ramnar Date: Sat, 24 Oct 2020 10:36:54 +0530 Subject: [PATCH 1/6] commands to create job and cronjob --- content/en/docs/reference/kubectl/cheatsheet.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index e20826ca43..dae5e8c697 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -85,12 +85,14 @@ 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 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 --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 # Create multiple YAML objects from stdin cat < Date: Sun, 25 Oct 2020 16:05:29 +0530 Subject: [PATCH 2/6] 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 < Date: Wed, 28 Oct 2020 07:28:32 +0530 Subject: [PATCH 3/6] implemented review comments implemented review comments --- content/en/docs/reference/kubectl/cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 283c17a436..12f1f33434 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -90,9 +90,9 @@ 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" +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 +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 From 18e4eaff070089f0e491851fcb2b8ab9fc09caa1 Mon Sep 17 00:00:00 2001 From: ramnar Date: Tue, 10 Nov 2020 07:05:16 +0530 Subject: [PATCH 4/6] implemented feedback implemented feedback --- content/en/docs/reference/kubectl/cheatsheet.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 12f1f33434..4766919c5a 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -90,9 +90,10 @@ 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 +# create a job which prints "hello world" +kubectl create job hello --image=busybox -- echo "Hello World" +# create a cronjob which prints "hello world" for every minute +kubectl create cronjob hello --image=busybox --schedule="*/1 * * * *" -- echo "Hello World" kubectl explain pods # get the documentation for pod manifests From ba4b043336fdabaacd4be2c6ca9fe6381c5012a3 Mon Sep 17 00:00:00 2001 From: ramnar Date: Tue, 10 Nov 2020 07:08:40 +0530 Subject: [PATCH 5/6] updated review comments updated review comments --- content/en/docs/reference/kubectl/cheatsheet.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 4766919c5a..3c5eacb480 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -90,11 +90,13 @@ 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 + # create a job which prints "hello world" kubectl create job hello --image=busybox -- echo "Hello World" + # create a cronjob which prints "hello world" for every minute -kubectl create cronjob hello --image=busybox ---schedule="*/1 * * * *" -- echo "Hello World" +kubectl create cronjob hello --image=busybox --schedule="*/1 * * * *" -- echo "Hello World" + kubectl explain pods # get the documentation for pod manifests # Create multiple YAML objects from stdin From 4ed2587df3ba3a27d1acf4220f04010cb17859d5 Mon Sep 17 00:00:00 2001 From: ramnar Date: Wed, 18 Nov 2020 10:03:23 +0530 Subject: [PATCH 6/6] implemented review comments --- content/en/docs/reference/kubectl/cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 3c5eacb480..8ff32aa54e 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -91,10 +91,10 @@ kubectl apply -f ./dir # create resource(s) in all manif kubectl apply -f https://git.io/vPieo # create resource(s) from url kubectl create deployment nginx --image=nginx # start a single instance of nginx -# create a job which prints "hello world" +# create a Job which prints "Hello World" kubectl create job hello --image=busybox -- echo "Hello World" -# create a cronjob which prints "hello world" for every minute +# create a CronJob that prints "Hello World" every minute kubectl create cronjob hello --image=busybox --schedule="*/1 * * * *" -- echo "Hello World" kubectl explain pods # get the documentation for pod manifests