| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| labels: |
| app: frontend |
| name: frontend |
| annotations: |
| service.alpha.kubernetes.io/app-protocols: '{"http2":"HTTP2"}' |
| beta.cloud.google.com/backend-config: |
| '{"ports": {"http": "backend-config", "http2": "backend-config"}}' |
| spec: |
| ports: |
| - name: http |
| port: 80 |
| protocol: TCP |
| targetPort: 80 |
| - name: grpc |
| port: 5050 |
| protocol: TCP |
| targetPort: 5050 |
| - name: http2 |
| port: 9000 |
| protocol: TCP |
| targetPort: 9000 |
| selector: |
| app: frontend |
| type: NodePort |