ibm-cloud-docs / containers

IBM Bluemix Container Service documentation
https://console.bluemix.net/docs/containers/container_index.html
48 stars 123 forks source link

service yaml definition incorrect #2652

Closed lluissabarich closed 1 year ago

lluissabarich commented 1 year ago

https://cloud.ibm.com/docs/containers?topic=containers-vpc-lbaas#setup_vpc_nlb_priv

https port specification is incomplete ports:

mtreible-ibm commented 1 year ago

Hi @lluissabarich

Thanks for opening this issue. The targetPort value is optional. By default it is set to match the port value. Here's a link to the Kubernetes docs for more info.

Since we recently had a similar issue opened, I've added a note to each LB service definition mentioning that the targetPort is optional.

name: http
protocol: TCP
port: 8080
targetPort: 8080 # Optional. By default, the `targetPort` is set to match the `port` value unless specified otherwise.

Thanks again.