Skip to content

Instantly share code, notes, and snippets.

@amygdala
Created January 13, 2015 17:24
Show Gist options
  • Save amygdala/72128b4624a7c9317a45 to your computer and use it in GitHub Desktop.
Save amygdala/72128b4624a7c9317a45 to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1beta1
id: frontend
# the port that this service should serve on
port: 3000
# just like the selector in the replication controller,
# but this time it identifies the set of pods to load balance
# traffic to.
selector:
name: frontend
# the container on each pod to connect to, can be a name
# (e.g. 'www') or a number (e.g. 80)
containerPort: 80
labels:
name: frontend
createExternalLoadBalancer: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment