Hello app service

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 .

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