github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/fakepubsub.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    namespace: default
     5    name: fakepubsub
     6    labels:
     7      app: fakepubsub
     8  spec:
     9    selector:
    10      matchLabels:
    11        app: fakepubsub
    12    replicas: 1
    13    template:
    14      metadata:
    15        labels:
    16          app: fakepubsub
    17      spec:
    18        containers:
    19        - name: fakepubsub
    20          image: localhost:5001/fakepubsub
    21          args:
    22          - --config-path=/etc/config/config.yaml
    23          ports:
    24          - containerPort: 8085
    25          volumeMounts:
    26          - name: config
    27            mountPath: /etc/config
    28            readOnly: true
    29        volumes:
    30        - name: config
    31          configMap:
    32            name: config
    33  ---
    34  apiVersion: v1
    35  kind: Service
    36  metadata:
    37    labels:
    38      app: fakepubsub
    39    namespace: default
    40    name: fakepubsub
    41  spec:
    42    ports:
    43    - name: main
    44      # Allow the test code to bypass ingress-nginx, because we don't want to deal
    45      # with TLS or mess with the ingress-nginx configuration. By using this
    46      # nodePort (also configured in KIND's settings), the test code can just use
    47      # localhost:<FAKEPUBSUB_RANDOM_NODE_PORT> to talk to the Pub/Sub emulator
    48      # running in port 8085 in the fakepubsub container. You must replace this
    49      # FAKEPUBSUB_RANDOM_NODE_PORT string with a value 30000-32767.
    50      nodePort: FAKEPUBSUB_RANDOM_NODE_PORT
    51      # This is the port for the *service* from within the cluster. It's used by
    52      # sub (that is, sub talks to the fakepubsub service via port 80 --- i.e.,
    53      # "fakepubusb.default:80").
    54      port: 80
    55      # 8085 is the default port used by the Pub/Sub emulator that ships with
    56      # gcloud. It is the port exposed by the pod.
    57      targetPort: 8085
    58      protocol: TCP
    59    selector:
    60      app: fakepubsub
    61    type: NodePort