Hello app service

Stay organized with collections Save and categorize content based on your preferences.

Kubernetes service for GKE Hello app.

Code sample

YAML

apiVersion: v1
kind: Service
metadata:
  name: helloweb
  labels:
    app: hello
spec:
  selector:
    app: hello
    tier: web
  ports:
  - port: 80
    targetPort: 8080
  type: LoadBalancer
  loadBalancerIP: "YOUR.IP.ADDRESS.HERE"

What's next

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