Skip to content

Instantly share code, notes, and snippets.

@sunnykrGupta
Created August 13, 2017 17:45
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 sunnykrGupta/78db8ce1c76a49f6ba3aae27eaa65e22 to your computer and use it in GitHub Desktop.
Save sunnykrGupta/78db8ce1c76a49f6ba3aae27eaa65e22 to your computer and use it in GitHub Desktop.
###### cat sample-services.yaml
kind: Service
apiVersion: v1
metadata:
name: my-service
spec:
type: LoadBalancer
loadBalancerIP: 10.10.10.1
ports:
# the port that this service should serve on
- port: 80
# port on which it should forward request ie, port pod is listening
targetPort: 8080
selector:
# labels assigned to pods
app: MyApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment