mongo-k8s-sidecar | Kubernetes sidecar for Mongo | OAuth library
kandi X-RAY | mongo-k8s-sidecar Summary
kandi X-RAY | mongo-k8s-sidecar Summary
Kubernetes sidecar for Mongo
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mongo-k8s-sidecar
mongo-k8s-sidecar Key Features
mongo-k8s-sidecar Examples and Code Snippets
Community Discussions
Trending Discussions on mongo-k8s-sidecar
QUESTION
error: unable to recognize "mongo-statefulset.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1"
The following command causes the above response in google cloud shell:
...ANSWER
Answered 2020-Oct-16 at 00:03Possible explanation.
Workaround, create your cluster with 1.15 version and it should work.
QUESTION
I'm trying to setup a volume to use with Mongo on k8s.
I use kubectl create -f pv.yaml
to create the volume.
pv.yaml:
...ANSWER
Answered 2018-May-07 at 19:44A persistent volume is just the declaration of availability of some storage inside your kubernetes cluster. There is no binding with your pod at this stage.
Since your pod is deployed through a StatefulSet
, there should be in your cluster one or more PersistentVolumeClaims
which are the objects that connect a pod with a PersistentVolume.
In order to manually bind a PV with a PVC you need to edit your PVC by adding the following in its spec section:
QUESTION
I'm trying to deploy MongoDB 4.2 into Kubernetes without using their Enterprise Operator using https://medium.com/devgorilla/how-to-deploy-mongodb-on-google-kubernetes-engine-gke-b099862fadbd and it seems to work fine except there is no Primary Replica Set Member.
I think so because all 3 members have type REPLICA_SET_GHOST. Here is example of an error when I try to insert something into db:
...ANSWER
Answered 2020-Apr-16 at 13:10I never used this sidecar - I manually setup replica, but I guess you are missing KUBERNETES_MONGO_SERVICE_NAME
to use stable network IDs as mentioned in sidecar repository
QUESTION
While I explored yaml definitions of Kubernetes templates, I stumbled across different definitions of sizes. First I thought it's about the apiVersions but they are the same. So what is the difference there? Which are right when both are the same?
storage: 5G
and storage: 5Gi
ANSWER
Answered 2019-Dec-18 at 15:25From Kubernetes source:
Limits and requests for memory are measured in bytes. You can express memory as a plain integer or as a fixed-point integer using one of these suffixes: E, P, T, G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. For example, the following represent roughly the same value:
128974848, 129e6, 129M, 123Mi
So those are the "bibyte" counterparts, like user2864740 commented.
A little info on those orders of magnitude:
The kibibyte was designed to replace the kilobyte in those computer science contexts in which the term kilobyte is used to mean 1024 bytes. The interpretation of kilobyte to denote 1024 bytes, conflicting with the SI definition of the prefix kilo (1000), used to be common.
So, as you can see, 5G means 5 Gigabytes while 5Gi means 5 Gibibytes. They amount to:
- 5 G = 5000000 KB / 5000 MB
- 5 Gi = 5368709.12 KB / 5368.70 MB
Therefore, in terms of size, they are not the same.
QUESTION
I have the following service...
...ANSWER
Answered 2019-Sep-12 at 20:52Add bind_ip
to command:
QUESTION
My goal is to create a StatefulSet
in the production
namespace and the staging
namespace. I am able to create the production StatefulSet however when deploying one to the staging namespace, I receive the error:
ANSWER
Answered 2019-Aug-21 at 20:01It seems like the error you are getting is from the mongo-sidecar container in the pod. As for why the mongo container is failing, can you obtain more detailed information? It could be something like a failed PVC.
QUESTION
I am creating the below mongodb statefulset which creates 3 replicas but when I run the code I get the below error and all pods are in CrashLoopBackOff state.
This is the error which I get when I try kubectl create -f
...ANSWER
Answered 2019-Aug-14 at 10:10--smallfiles
is not supported in newest mongo (4.2) you can check it in doc, you are not specifying image tag so newest latest
is pull in this case mongo 4.2.
If you set image: mongo:4.0
your configuration should be correct.
QUESTION
I am trying to deploy and Express
api on GKE, with a Mongo
StatefulSet
.
googlecloud_ssd.yaml
...ANSWER
Answered 2019-Jun-10 at 14:06The connection to your Mongodb database doesn't work for two reasons:
You cannot connect to high-available MongoDB deployment running inside your Kubernetes cluster using Pods DNS names. These unique POD names:
mongo-0.mongo
,mongo-1.mongo
, with corresponding FQDNs asmongo-0.mongo.default.svc.cluster.local
,mongo-1.mongo.default.svc.cluster.local
, can be only reached within the K8S cluster. You have an Express web application that runs on client side (Web browser), and needs to connect to your mongodb from outside of cluster.Connection string: you should connect to primary node via Kubernetes service name, that abstracts access to the Pods behind the replica sets.
Solution:
Create a separate Kubernetes Service of LoadBalancer or NodePort type for your Primary ReplicaSet, and use :27017
in your connection string.
I would encourage you to take a look at official mongodb helm chart, to see what kind of manifest files are required to satisfy your case.
Hint: use '--set service.type=LoadBalancer' with this helm chart
QUESTION
I'm trying to run a stateful Mongo inside Kubernetes and it works with these configurations outside of Istio.
...ANSWER
Answered 2017-Jul-25 at 20:24StatefulSet support has been recently added, but it's not in a release yet.
QUESTION
I have a mongo database in the gce . (config see below)
when i deploy it to a 1.7.12-gke.1 everything works fine. Which means the sidecar resolves the pods and links then
now when i deploy the same konfiguration to 1.8.7-gke.1 resultes in missing permissions to list pods see below.
I don't get the point what has changed . I assume i need to assign specific permissions to the user account is that right ?
What am I missing?
Error log
...ANSWER
Answered 2018-Mar-10 at 15:11According to original solution: https://github.com/cvallance/mongo-k8s-sidecar/issues/75
You have to create role binding which will grant the default service account view permissions:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mongo-k8s-sidecar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page