github.com/koko1123/flow-go-1@v0.29.6/k8s/staging/flow-network-service.yml (about)

     1  # Headless Service, for internal cluster access by other pods
     2  apiVersion: v1
     3  kind: Service
     4  
     5  metadata:
     6    name: flow-test-network-v1
     7    namespace: flow
     8  
     9    labels:
    10      app: flow-test-net
    11      env: staging
    12      owner: Kan
    13      version: v1
    14  
    15  spec:
    16    type: ClusterIP
    17    selector:
    18      app: flow-test-net
    19      env: staging
    20      version: v1
    21    # Headless Service, gives each pod a DNS address only.
    22    # Did not play well with cgo addrinfo lookup, which is used due to the DNS names ending in .local
    23    # best to use pure go implementation
    24    clusterIP: None
    25    ports:
    26      - name: http
    27        protocol: TCP
    28        port: 8080
    29        targetPort: http # reference to the name of the port in your container config
    30      - name: grpc
    31        protocol: TCP
    32        port: 3569
    33        targetPort: grpc # reference to the name of the port in your container config