jpetazzo / container.training

Slides and code samples for training, tutorials, and workshops about Docker, containers, and Kubernetes.

Home Page:http://container.training/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectl "create" replacing "run"

bridgetkromhout opened this issue · comments

$ kubectl run pingpong --image alpine ping 1.1.1.1
kubectl run --generator=deployment/apps.v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl create instead.
deployment.apps/pingpong created
[13.66.18.226] (local) docker@node1 ~/container.training/dockercoins

Temporary fix: #362

We'll want to make the appropriate revisions, though.

Yes! It will require extensive changes (basically getting rid of all the -l run=... that we do all over the place).

The most annoying thing is that kubectl create deployments doesn't support command-line args, so the whole pinger example will have to change. Perhaps we could create a jpetazzo/pinger image; or perhaps get rid of that example, we'll see.

Addressed by #396.