Skip to content

Instantly share code, notes, and snippets.

@Thakurvaibhav
Last active August 14, 2018 07:02
Show Gist options
  • Save Thakurvaibhav/e53bdf157862797044fe06412783f0ed to your computer and use it in GitHub Desktop.
Save Thakurvaibhav/e53bdf157862797044fe06412783f0ed to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/load-balancer-type: Internal
name: mongo-0
namespace: mongo
spec:
ports:
-
port: 27017
targetPort: 27017
selector:
statefulset.kubernetes.io/pod-name: mongo-0
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment