Created
August 27, 2020 10:32
-
-
Save DevopsVlogger/90752cddc0dd3265f182aa9016147caa to your computer and use it in GitHub Desktop.
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mydep-service | |
spec: | |
type: NodePort | |
ports: | |
- port: 8080 #service port | |
targetPort: 8080 #Pod Port | |
nodePort: 30088 #Node Port from the range - 30000-32767 | |
selector: | |
app: my-dep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment