Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What_happens_when_...__kubectl_run_nginx_--imag...

yosshi_
January 16, 2019
2.4k

 What_happens_when_...__kubectl_run_nginx_--image_nginx_--replicas_3_.pdf

yosshi_

January 16, 2019
Tweet

Transcript

  1. ç What happens when ... ”kubectl run nginx --image=nginx --replicas=3”

    Docker Meetup Tokyo #27 @NTT Software Innovation Center @yosshi_
  2. こんなことを解説してくれる › kubectl run nginx --image=nginx --replicas=3 kubectl run --generator=deployment/apps.v1

    is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead. deployment.apps/nginx created › kubectl get pod NAME READY STATUS RESTARTS AGE nginx-7cdbd8cdc9-4nv6x 1/1 Running 0 72s nginx-7cdbd8cdc9-cskks 1/1 Running 0 72s nginx-7cdbd8cdc9-ctq99 1/1 Running 0 72s この間に 何が起こったのか? Captain Kubeと出会う Phippyが三体増える 参考<https://stackoverflow.com/questions/52890718/kubectl-run-is-deprecated-looking-for-alternative> 補⾜:今後は”run”ではなく、”create”が推奨
  3. こんなことを解説してくれる › kubectl run nginx --image=nginx --replicas=3 kubectl run --generator=deployment/apps.v1

    is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead. deployment.apps/nginx created Deployment指定してないのに動いてる kubectl will infer the resource type if the generator name wasn't explicitly specified using the --generator flag. 例:マニフェストなら ドキュメント内の⽂章 使うわけじゃないけど、分かると楽しい!!