Website: Issue with k8s.io/docs/tutorials/hello-minikube/

Created on 1 Dec 2018  路  6Comments  路  Source: kubernetes/website

This is a...

  • [X] Feature Request
  • [] Bug Report

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

lifecyclrotten

Most helpful comment

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

All 6 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmetb picture ahmetb  路  4Comments

dheerujava picture dheerujava  路  4Comments

zacharysarah picture zacharysarah  路  4Comments

Dieken picture Dieken  路  4Comments

seokho-son picture seokho-son  路  3Comments