Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

targetport should be integer #15

Open
surajnarwade opened this issue Nov 7, 2017 · 2 comments
Open

targetport should be integer #15

surajnarwade opened this issue Nov 7, 2017 · 2 comments

Comments

@surajnarwade
Copy link
Contributor

according to schema, targetPort is string, it should be ineger

- services.0.ports.0.targetPort: Invalid type. Expected: string, given: integer
@kadel
Copy link
Member

kadel commented Nov 7, 2017

@kadel
Copy link
Member

kadel commented Nov 7, 2017

from swagger definition https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json:

    "targetPort": {
      "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
      "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
     }

@kadel kadel mentioned this issue Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants