Skip to content

Instantly share code, notes, and snippets.

@lukemarsden
Last active February 14, 2017 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukemarsden/f6bb1c17bf2625b3a40d9e2f9f4e36d4 to your computer and use it in GitHub Desktop.
Save lukemarsden/f6bb1c17bf2625b3a40d9e2f9f4e36d4 to your computer and use it in GitHub Desktop.
cat << EOF > nginx-service.yaml
apiVersion: v1
kind: Service
metadata:
name: frontend
spec:
type: NodePort
selector:
app: nginx
ports:
- port: 80
targetPort: 80
nodePort: 30003
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment