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 
 : 
  
 us-docker.pkg.dev/google-samples/containers/gke/pubsub-sample:v2 
 

What's next

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

Design a Mobile Site
View Site in Mobile | Classic
Share by: