Files
kubernetes/examples/walkthrough/v1beta3/service.yaml
Tim Hockin 4375376e9c Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples.  Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00

19 lines
431 B
YAML

apiVersion: v1beta3
kind: Service
metadata:
name: nginx-example
spec:
# the container on each pod to connect to, can be a name
# (e.g. 'www') or a number (e.g. 80)
targetPort: 80
# the port that this service should serve on
port: 8000
protocol: TCP
# just like the selector in the replication controller,
# but this time it identifies the set of pods to load balance
# traffic to.
selector:
name: nginx