commands to create job and cronjob

This commit is contained in:
ramnar
2020-10-24 10:36:54 +05:30
committed by GitHub
parent 0a642282e5
commit 18eb0bfc02
@@ -90,6 +90,8 @@ 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 ./dir # create resource(s) in all manifest files in dir
kubectl apply -f https://git.io/vPieo # create resource(s) from url 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 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 explain pods # get the documentation for pod manifests
# Create multiple YAML objects from stdin # Create multiple YAML objects from stdin