parent
18eb0bfc02
commit
177fb0d6f2
|
@ -90,8 +90,10 @@ kubectl apply -f ./my1.yaml -f ./my2.yaml
|
||||||
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 job hello \ # 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
|
--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
|
kubectl explain pods # get the documentation for pod manifests
|
||||||
|
|
||||||
# Create multiple YAML objects from stdin
|
# Create multiple YAML objects from stdin
|
||||||
|
|
Loading…
Reference in New Issue