Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replication has not yet been configured #99

Open
meirhazonAnyVision opened this issue Apr 4, 2019 · 3 comments
Open

Replication has not yet been configured #99

meirhazonAnyVision opened this issue Apr 4, 2019 · 3 comments

Comments

@meirhazonAnyVision
Copy link

Hello,

I am getting the following error,
2019-04-04T07:58:49.234+0000 I CONTROL [initandlisten] options: { replication: { replSet: "rs0" }, storage: { mmapv1: { preallocDataFiles: false, smallFiles: true } } }
2019-04-04T07:58:50.435+0000 I REPL [initandlisten] Did not find local replica set configuration document at startup; NoMatchingDocument: Did not find replica set configuration document in local.system.replset

I am using mongo:latest cvallance/mongo-k8s-sidecar:latest docker 18.09.3 kubelet kubelet/kubernetes-xenial 1.14.0-00 on top of Ubuntu 18.4 LTS

I am using local storage as storage at this time

The statefulset is created correctly,
oot@ceph-2-1:/mongo/mongo-k8s-sidecar/example/StatefulSet# kubectl get nodes
NAME STATUS ROLES AGE VERSION
ceph-2-1 Ready master 22h v1.13.4
ceph-2-2 Ready 21h v1.13.4
ceph-2-3 Ready 21h v1.13.4
root@ceph-2-1:
/mongo/mongo-k8s-sidecar/example/StatefulSet# kubectl get pods
NAME READY STATUS RESTARTS AGE
mongo-0 2/2 Running 0 15m
mongo-1 2/2 Running 0 15m
mongo-2 2/2 Running 0 15m
root@ceph-2-1:~/mongo/mongo-k8s-sidecar/example/StatefulSet#

I have used the default examples that you provide and added fabric8-rbac.yaml,

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: fabric8-rbac
subjects:

  • kind: ServiceAccount

    Reference to upper's metadata.name

    name: default

    Reference to upper's metadata.namespace

    namespace: default
    roleRef:
    kind: ClusterRole
    name: cluster-admin
    apiGroup: rbac.authorization.k8s.io

Thanks so much,
Meir

@yaoice
Copy link

yaoice commented May 17, 2019

I have the same issue

@smyth64
Copy link

smyth64 commented Jul 10, 2019

me too

@ChangJoo-Park
Copy link

@meirhazonAnyVision @yaoice @smyth64

If yaml has not MONGO_PORT env, must add in your yaml.
https://github.com/cvallance/mongo-k8s-sidecar/blob/master/src/lib/config.js#L79 is not set 27017 by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants