Created
August 13, 2017 17:45
-
-
Save sunnykrGupta/78db8ce1c76a49f6ba3aae27eaa65e22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### 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