Google Cloud samples
Search for samples demonstrating the usage of Google Cloud products.
For Terraform samples, see Resource samples and Blueprints.
Pub/Sub HPA
Kubernetes Horizontal Pod Autoscaler for Pub/Sub sample app.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Custom metrics prometheus exporter source code
Source code for custom prometheus exporter to Cloud Monitoring.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- Go
- Sample
Hello app deployment
Kubernetes deployment for GKE Hello app.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Client library quickstart
Use the Node.js GKE cluster admin client library.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- JavaScript
- Node JS
- Sample
Custom metrics exporter deployment
Kubernetes deployment manifest for a custom Cloud Monitoring exporter.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Hello app source code
Source code for GKE Hello app server.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- Go
- Sample
Custom metrics prometheus exporter deployment
Kubernetes deployment for prometheus exporter.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Hello app ingress
Kubernetes ingress resource for GKE Hello app.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- YAML
- Sample
Hello app HPA
Kubernetes Horizontal Pod Autoscaler for GKE Hello app.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- YAML
- Sample
Custom metrics exporter HPA
Horizontal Pod Autoscaler for custom Cloud Monitoring exporter.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Pub/Sub deployment with credentials
Kubernetes deployment for the Pub/Sub sample app, with GOOGLE_APPLICATION_CREDENTIALS added as an environment variable.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Pull Pub/Sub messages from subscription
Continuously pull messages from an existing Pub/Sub subscription.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- Python
- Sample
Hello app service
Kubernetes service for GKE Hello app.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- YAML
- Sample
Custom metrics prometheus exporter HPA
Horizontal Pod Autoscaler for prometheus exporter to Cloud Monitoring.
- Google Kubernetes Engine (GKE)
- Google Cloud
- Kubernetes Engine API
- YAML
- Sample
Custom metrics exporter source code
Source code for custom Cloud Monitoring exporter.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- Go
- Sample
Hello app redistribution deployment
Kubernetes deployment for GKE Hello app redistibution.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- YAML
- Sample
Pub/Sub deployment
Kubernetes deployment for Pub/Sub sample application.
- Google Cloud
- Google Kubernetes Engine (GKE)
- Kubernetes Engine API
- YAML
- Sample