...

Text file src/github.com/datawire/ambassador/v2/docs/yaml/emojivoto/voting/v10-svc.yaml

Documentation: github.com/datawire/ambassador/v2/docs/yaml/emojivoto/voting

     1# This YAML is used to select only version 10 of the emojivoto Voting service. 
     2# 
     3# This is downloaded when doing Chapter 6 of the CNCF service mesh labs which 
     4# walks the user through traffic splitting using the 
     5# Service Mesh Interface (SMI) TrafficSplit object.
     6---
     7apiVersion: v1
     8kind: ServiceAccount
     9metadata:
    10  name: voting
    11  namespace: emojivoto
    12---
    13apiVersion: v1
    14kind: Service
    15metadata:
    16  name: voting-svc-v10
    17  namespace: emojivoto
    18spec:
    19  ports:
    20  - name: grpc
    21    port: 8080
    22    targetPort: 8080
    23  - name: prom
    24    port: 8801
    25    targetPort: 8801
    26  selector:
    27    app: voting-svc
    28    version: v10

View as plain text