appsody / appsody-operator

An Operator for deploying Appsody based applications to Kubernetes. This repo will be archived soon.
Apache License 2.0
18 stars 15 forks source link

Expose targetPort in Kube Service definition within AppsodyApplication yaml #181

Closed hollisc closed 4 years ago

hollisc commented 4 years ago

Feature Request

Expose targetPort in Kube Service definition within AppsodyApplication yaml

Is your feature request related to a problem?

If the Kubernetes Service for my application has defined a diff port value for "port" vs "targetPort" of type "ClusterIP", currently "targetPort" defaults to the same port value as "port" and the service would need to be updated after the AppsodyApplication is created.

Describe the solution you'd like

Add an optional parameter to the AppsodyApplication CRD (https://github.com/appsody/appsody-operator/blob/master/doc/user-guide.md#kubernetes-application-navigator-kappnav-support). By default, it can be set to the same value as "port".

Allow users to customize the value of "targetPort".