2014-10-21 05:44:14 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1beta1
|
2014-10-21 14:19:55 +00:00
|
|
|
id: nginx-example
|
2014-10-21 05:44:14 +00:00
|
|
|
# the port that this service should serve on
|
|
|
|
port: 8000
|
|
|
|
# just like the selector in the replication controller,
|
|
|
|
# but this time it identifies the set of pods to load balance
|
|
|
|
# traffic to.
|
|
|
|
selector:
|
2014-10-21 14:19:55 +00:00
|
|
|
name: nginx
|
2014-10-21 05:44:14 +00:00
|
|
|
# the container on each pod to connect to, can be a name
|
|
|
|
# (e.g. 'www') or a number (e.g. 80)
|
|
|
|
containerPort: 80
|