mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 13:57:13 +00:00
18 lines
522 B
YAML
18 lines
522 B
YAML
|
# 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: google-cloud-sample-external
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
selector:
|
||
|
app: google-cloud-sample
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 80
|
||
|
targetPort: 8080
|