Pub/Sub deployment

Kubernetes deployment for Pub/Sub sample application.

Code sample

YAML

apiVersion: apps/v1
kind: Deployment
metadata:
  name: pubsub
spec:
  selector:
    matchLabels:
      app: pubsub
  template:
    metadata:
      labels:
        app: pubsub
    spec:
      containers:
      - name: subscriber
        image: gcr.io/google-samples/pubsub-sample:v1

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.