Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Last active July 19, 2017 09:28
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 jeroenr/e809bb0bedd702f044a5b0f1e43e3f62 to your computer and use it in GitHub Desktop.
Save jeroenr/e809bb0bedd702f044a5b0f1e43e3f62 to your computer and use it in GitHub Desktop.
Kubernetes service and endpoint descriptor for off cluster mongo
apiVersion: v1
kind: Endpoints
metadata:
name: mongo-svc
subsets:
- addresses:
- ip: 10.0.0.1
ports:
- port: 27017
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: mongo-svc
spec:
ports:
- port: 27017
protocol: TCP
targetPort: 27017
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment