This is a...
Problem:
$ kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node --port=8080
Error: unknown flag: --port
Proposed Solution:
Update documentation
Page to Update:
https://kubernetes.io/docs/tutorials/hello-minikube/
Kubernetes Version:
minikube version: v0.28.2
OS Version:
Mac OS 10.12.6
@be-rock I'll work on this
I was following the tutorial and also faced same issue.
After removing --port from command:
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
The following command now requires --port to be specified:
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
Otherwise I'll see another error:
error: couldn't find port via --port flag or introspection
@yaooluu Right!! , I got the same error, Ill update the documentation for this command also.
Thanks.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
Thanks all.
Most helpful comment
I was following the tutorial and also faced same issue.
After removing
--portfrom command:The following command now requires
--portto be specified:Otherwise I'll see another error: