{"action":"created","issue":{"url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/32","repository_url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar","labels_url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/32/comments","events_url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/32/events","html_url":"https://github.com/cvallance/mongo-k8s-sidecar/issues/32","id":220293971,"number":32,"title":"How to access mongodb server with statefulset from outside k8S cluster?","user":{"login":"luckyfengyong","id":8002217,"avatar_url":"https://avatars3.githubusercontent.com/u/8002217?v=4","gravatar_id":"","url":"https://api.github.com/users/luckyfengyong","html_url":"https://github.com/luckyfengyong","followers_url":"https://api.github.com/users/luckyfengyong/followers","following_url":"https://api.github.com/users/luckyfengyong/following{/other_user}","gists_url":"https://api.github.com/users/luckyfengyong/gists{/gist_id}","starred_url":"https://api.github.com/users/luckyfengyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckyfengyong/subscriptions","organizations_url":"https://api.github.com/users/luckyfengyong/orgs","repos_url":"https://api.github.com/users/luckyfengyong/repos","events_url":"https://api.github.com/users/luckyfengyong/events{/privacy}","received_events_url":"https://api.github.com/users/luckyfengyong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-07T18:33:52Z","updated_at":"2017-07-29T22:11:55Z","closed_at":null,"body":"Any idea how external user access mongodb service?\r\nI try to export the mongodb as a normal service, for example, the type of NodePort. I could access mongodb by CLI or programming interface but has to specify rs.slaveOk(). However according to http://dbversity.com/mongodb-why-we-need-to-set-rs-slaveok-while-querying-on-secondaries, the rs.slaveOk() may not be recommended for all the use cases. \r\nDoes user has to use the old solution of one replicateset/service per mongodb instance?\r\nBTW, the service has to be created with headless first, otherwise sidecare failed to initialize mongodb instance. User could update the service with nodeport or other type later to access the mongodb externally. "},"comment":{"url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/comments/318863049","html_url":"https://github.com/cvallance/mongo-k8s-sidecar/issues/32#issuecomment-318863049","issue_url":"https://api.github.com/repos/cvallance/mongo-k8s-sidecar/issues/32","id":318863049,"user":{"login":"mallikharjunrao","id":24277012,"avatar_url":"https://avatars1.githubusercontent.com/u/24277012?v=4","gravatar_id":"","url":"https://api.github.com/users/mallikharjunrao","html_url":"https://github.com/mallikharjunrao","followers_url":"https://api.github.com/users/mallikharjunrao/followers","following_url":"https://api.github.com/users/mallikharjunrao/following{/other_user}","gists_url":"https://api.github.com/users/mallikharjunrao/gists{/gist_id}","starred_url":"https://api.github.com/users/mallikharjunrao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mallikharjunrao/subscriptions","organizations_url":"https://api.github.com/users/mallikharjunrao/orgs","repos_url":"https://api.github.com/users/mallikharjunrao/repos","events_url":"https://api.github.com/users/mallikharjunrao/events{/privacy}","received_events_url":"https://api.github.com/users/mallikharjunrao/received_events","type":"User","site_admin":false},"created_at":"2017-07-29T22:11:55Z","updated_at":"2017-07-29T22:11:55Z","body":"@pashok2398 i tried connecting NODE_NAME:port and PUBLIC_IP_OF_NODE:port doesnt work for me. is DNS_NAME_OF_NODE:port works? "}}
{"actor":{"display_login":"mallikharjunrao"}}