Alle GKE-Beispiele

This page contains code samples for Kubernetes Engine API. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Client library quickstart

Use the Node.js GKE cluster admin client library.

Custom metrics exporter deployment

Kubernetes deployment manifest for a custom Cloud Monitoring exporter.

Custom metrics exporter HPA

Horizontal Pod Autoscaler for custom Cloud Monitoring exporter.

Custom metrics exporter source code

Source code for custom Cloud Monitoring exporter.

Custom metrics prometheus exporter deployment

Kubernetes deployment for prometheus exporter.

Custom metrics prometheus exporter HPA

Horizontal Pod Autoscaler for prometheus exporter to Cloud Monitoring.

Custom metrics prometheus exporter source code

Source code for custom prometheus exporter to Cloud Monitoring.

Hello app deployment

Kubernetes deployment for GKE Hello app.

Hello App HPA

Kubernetes Horizontal Pod Autoscaler for GKE Hello app.

Hello app ingress

Kubernetes ingress resource for GKE Hello app.

Hello app redistribution deployment

Kubernetes deployment for GKE Hello app redistibution.

Hello app service

Kubernetes service for GKE Hello app.

Hello app source code

Source code for GKE Hello app server.

Pub/Sub deployment

Kubernetes deployment for Pub/Sub sample application.

Pub/Sub deployment with credentials

Kubernetes deployment for the Pub/Sub sample app, with GOOGLE_APPLICATION_CREDENTIALS added as an environment variable.

Pub/Sub HPA

Kubernetes Horizontal Pod Autoscaler for Pub/Sub sample app.

Pull Pub/Sub messages from subscription

Continuously pull messages from an existing Pub/Sub subscription.