...

Text file src/k8s.io/kubernetes/test/e2e/testing-manifests/ingress/neg-exposed/svc.yaml

Documentation: k8s.io/kubernetes/test/e2e/testing-manifests/ingress/neg-exposed

     1apiVersion: v1
     2kind: Service
     3metadata:
     4  name: hostname
     5  annotations:
     6    cloud.google.com/neg: '{"ingress":true,"exposed_ports":{"80":{},"443":{}}}'
     7spec:
     8  ports:
     9  - port: 80
    10    name: host1
    11    protocol: TCP
    12    targetPort: 8000
    13  - port: 443
    14    name: host2
    15    protocol: TCP
    16    targetPort: 8080
    17  selector:
    18    run: hostname
    19  sessionAffinity: None
    20  type: ClusterIP

View as plain text