Last active
July 19, 2017 09:28
-
-
Save jeroenr/e809bb0bedd702f044a5b0f1e43e3f62 to your computer and use it in GitHub Desktop.
Kubernetes service and endpoint descriptor for off cluster mongo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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