Skip to content

Instantly share code, notes, and snippets.

@alperen-selcuk
Last active April 8, 2021 10:10
Show Gist options
  • Select an option

  • Save alperen-selcuk/c010b8f47acd1441c09922df2d7d38b9 to your computer and use it in GitHub Desktop.

Select an option

Save alperen-selcuk/c010b8f47acd1441c09922df2d7d38b9 to your computer and use it in GitHub Desktop.
nodeport.yaml
apiVersion: v1
kind: Service
metadata:
name: nginx-nodeport
spec:
type: NodePort
selector:
app: nginx
ports:
- port: 80
targetPort: 80
nodePort: 31111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment