Skip to content

Instantly share code, notes, and snippets.

@ramr
Created March 29, 2016 22:05
Show Gist options
  • Save ramr/43f55948461df51cc8ffe01530af0ce7 to your computer and use it in GitHub Desktop.
Save ramr/43f55948461df51cc8ffe01530af0ce7 to your computer and use it in GitHub Desktop.
nodeport-router-yaml
apiVersion: v1
kind: Service
metadata:
name: router-exposition
labels:
name: router
spec:
type: NodePort
ports:
# the port that this service should serve on
- port: 80
nodePort: 30405
protocol: TCP
targetPort: 80
selector:
router: router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment