github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/common/service/loadbalancer-with-additional-ports.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: nginx-ingress
     5    namespace: nginx-ingress
     6  spec:
     7    externalTrafficPolicy: Local
     8    type: LoadBalancer
     9    ports:
    10    - port: 80
    11      targetPort: 80
    12      protocol: TCP
    13      name: http
    14    - port: 443
    15      targetPort: 443
    16      protocol: TCP
    17      name: https
    18    - port: 8080
    19      targetPort: 8080
    20      protocol: TCP
    21      name: api
    22    - port: 9113
    23      targetPort: 9113
    24      protocol: TCP
    25      name: exporter
    26    selector:
    27      app: nginx-ingress