...

Text file src/edge-infra.dev/pkg/sds/emergencyaccess/ea_integration/v2/pubsub/manifests.yaml

Documentation: edge-infra.dev/pkg/sds/emergencyaccess/ea_integration/v2/pubsub

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: gcp-emulator-deployment
     5  namespace: test-namespace  # Replace with the actual namespace
     6  labels:
     7    app: pubsub
     8spec:
     9  selector:
    10    matchLabels:
    11      app: pubsub
    12  template:
    13    metadata:
    14      labels:
    15        app: pubsub
    16    spec:
    17      containers:
    18      - name: pubsub-emulator
    19        image: "//hack/deps:gcloud_container_push"
    20        command: ["gcloud", "beta", "emulators", "pubsub", "start"]
    21        args: ["--project=abc", "--host-port=0.0.0.0:8085"]
    22        readinessProbe:
    23          tcpSocket:
    24            port: 8085
    25          initialDelaySeconds: 1
    26          periodSeconds: 5
    27---
    28apiVersion: v1
    29kind: Service
    30metadata:
    31  name: pubsub-service
    32  namespace: test-namespace  # Replace with the actual namespace
    33spec:
    34  ports:
    35  - protocol: TCP
    36    port: 8085
    37    targetPort: 8085
    38  selector:
    39    app: pubsub

View as plain text