Comments (1)
My bad! Little think that I did not pay attention when looking at example like environment
and serviceName
which I should have removed from the quotes.
For the environment, I just removed it, and this is what I have:
# # Stateful Config
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: notifications-mongo
spec:
selector:
matchLabels:
app: notifications-mongo
serviceName: notifications-mongo-srv
replicas: 2
template:
metadata:
labels:
app: notifications-mongo
environment: development
spec:
terminationGracePeriodSeconds: 10
containers:
- name: notifications-mongo
image: mongo
command:
- mongod
args:
- "--replSet=rs0"
- "--bind_ip=0.0.0.0"
ports:
- containerPort: 27017
name: notifications-db
volumeMounts:
- name: notifications-pv
mountPath: /data/notifications-db
- name: notifications-mongo-sidecar
image: morphy/k8s-mongo-sidecar
env:
- name: KUBERNETES_POD_LABELS
value: "app=notifications-mongo"
- name: KUBERNETES_SERVICE_NAME
value: "notifications-mongo-srv"
volumes:
- name: notifications-pv
persistentVolumeClaim:
claimName: notifications-pv
volumeClaimTemplates:
- metadata:
name: notifications-pv
spec:
accessModes: ["ReadWriteOnce"]
from k8s-mongo-sidecar.
Related Issues (15)
- no replset config has been received HOT 3
- MongoDB Sidecar doesn't work with IPv6 enabled HOT 4
- Does it support to Mongodb 4.7?
- Dependabot couldn't find a <anything>.yml for this project
- Failed to get /openapi/v2 and /swagger.json
- scaling down issues HOT 6
- No replset config has been received HOT 1
- Unable to change service account name via env
- Replicas could not join the cluster HOT 1
- Non force replica set reconfig can only add or remove at most 1 voting member. HOT 2
- When enable auth , requires authentication between mongo Heartbeat
- [k8s v1.19.2] cannot get resource "namespaces" in API group "" in the namespace "pods" HOT 1
- Cannot start StatefullSet in persistent volume NFS HOT 1
- support 4.4.+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-mongo-sidecar.