Skip to content

Instantly share code, notes, and snippets.

@amygdala
Created January 13, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amygdala/9f88e2ea9c37d26a8a68 to your computer and use it in GitHub Desktop.
Save amygdala/9f88e2ea9c37d26a8a68 to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1beta1
id: mysql
# the port that this service should serve on
port: 3306
# just like the selector in the replication controller,
# but this time it identifies the set of pods to load balance
# traffic to.
selector:
name: mysql
# the container on each pod to connect to, can be a name
# (e.g. 'www') or a number (e.g. 80)
containerPort: 3306
labels:
name: mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment