gobuch/cloud-provider/google-cloud-hello/kubernetes-manifests/hello.service.yaml

18 lines
512 B
YAML
Raw Normal View History

2020-08-21 04:26:40 +00:00
# This Service manifest defines:
# - a load balancer for pods matching label "app: go-hello-world"
# - exposing the application to the public Internet (type:LoadBalancer)
# - routes port 80 of the load balancer to the port 8080 of the Pods.
# Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/
apiVersion: v1
kind: Service
metadata:
name: go-hello-world-external
spec:
type: LoadBalancer
selector:
app: go-hello-world
ports:
- name: http
port: 80
targetPort: 8080