| # Copyright 2018 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. |
| # |
| # This file contains the definitions of the Analyzer Service's Service object. |
| # |
| # The definitions contain some parameters (indicated by $$PARAMETER_NAME$$) |
| # that will be replaced by the script tools/container_util.py prior to being |
| # passed to "kubectl apply" |
| |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: analyzer-service |
| spec: |
| ports: |
| # The port that this service should serve on. This should match the port |
| # used several times in analyzer_service_deployment and the one specified in |
| # Dockerfile. |
| - port: 6001 |
| selector: |
| # This must match the metadata.labels section of the Deployment above. |
| name: analyzer-service |
| type: LoadBalancer |
| loadBalancerIP: $$ANALYZER_STATIC_IP_ADDRESS$$ |