Google course on Kubernetes proposes:
$ kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080
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.
Now I'm trying to use the new syntax:
$ kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
$ kubectl expose deployment/kubernetes-bootcamp --port=8080 type=NodePort
I'm sure that they are not the same. Could anyone help me?
Rr
Not duplicate: I'm asking about equivalence of two commands