Skip to content

kubectl.sh run-container with no ports fails #4305

Closed
@vmarmol

Description

This is an image with no exposed ports. The command expects ports even though the description says otherwise.

vmarmol@m-o2:~/tmp/secure$ kubectl.sh run-container vmarmol-secure --image=vmarmol/secure:latest
Project: proj
Zone: us-central1-f
Running: ../cluster/gce/../../_output/dockerized/bin/linux/amd64/kubectl run-container vmarmol-secure --image=vmarmol/secure:latest
F0210 09:35:11.090764   13473 run.go:82] ReplicationController "vmarmol-secure" is invalid: spec.template.spec.containers[0].ports[0].containerPort: invalid value '-1': must be greater than 0 and less than 65536

Metadata

Assignees

Labels

area/usabilitypriority/backlogHigher priority than priority/awaiting-more-evidence.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions