Skip to content

Instantly share code, notes, and snippets.

@muralidharan-rade
Created August 22, 2020 08:06
Show Gist options
  • Select an option

  • Save muralidharan-rade/4f67411b355299e17763fbd7c6afa37d to your computer and use it in GitHub Desktop.

Select an option

Save muralidharan-rade/4f67411b355299e17763fbd7c6afa37d to your computer and use it in GitHub Desktop.
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