Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NodePort Service definition
apiVersion: v1
kind: Service
metadata:
labels:
app: wordpress
name: wordpress
spec:
ports:
- name: 80-31004
port: 80
protocol: TCP
targetPort: 80
nodePort: 31004
selector:
app: wordpress
type: NodePort
status:
loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment