apiVersion: v1
kind: Service
metadata:
  name: profileapi
spec:
  type: ClusterIP
  selector: # The target resource. This value selects all the resources with a given label onto a single IP address.
    app: azure-user-profile
  ports:
    - port: 5263 # SERVICE exposed port This port is the inbound port for your application. All the requests come to this port from where the service forwards the requests to the resource.
      targetPort: http # Port to forward to in the POD. This value identifies the port on the target resource on which incoming requests are received. 
      protocol: TCP # This value identifies the network protocol for which the service will forward network data.
      name: http