Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Last active June 19, 2020 21:31
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 tylertreat/e43e6f64023c8eeb6472210c9d978488 to your computer and use it in GitHub Desktop.
Save tylertreat/e43e6f64023c8eeb6472210c9d978488 to your computer and use it in GitHub Desktop.
Kubernetes service
apiVersion: v1
kind: Service
metadata:
name: web
namespace: default
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
run: web
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment