Skip to content

Instantly share code, notes, and snippets.

@priyankvex
Created February 4, 2018 14:03
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 priyankvex/cb1a9328127de44a6de483584643fcf0 to your computer and use it in GitHub Desktop.
Save priyankvex/cb1a9328127de44a6de483584643fcf0 to your computer and use it in GitHub Desktop.
YAML file to create the cats service in kubernetes
apiVersion: v1
kind: Service
metadata:
name: cats-service
labels:
run: cats-service
spec:
type: NodePort
ports:
- port: 80
protocol: TCP
selector:
app: cats-deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment