Skip to content

Commit cae9cea

Browse files
author
Rodrigo Valin
committed
a0abe06a7cbff7818e66b66d5d27411148ad5076: update public repo contents
1 parent 12b8514 commit cae9cea

8 files changed

+23
-7
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Welcome to the MongoDB Enterprise Kubernetes Operator. The Operator enables easy deploys of MongoDB into Kubernetes clusters, using our management, monitoring and backup platforms, Ops Manager and Cloud Manager. By installing this integration, you will be able to deploy MongoDB instances with a single simple command.
44

5-
Please note that this project is currently in beta, and is not yet recommended for production use.
6-
75
You can discuss this integration in our [Slack](https://community-slack.mongodb.com) - join the [#enterprise-kubernetes](https://mongo-db.slack.com/messages/CB323LCG5/) channel.
86

97
## Documentation ##

helm_chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mongodb-enterprise-operator
22
description: MongoDB Kubernetes Enterprise Operator
3-
version: '0.12'
3+
version: '1.0'
44
kubeVersion: '>=1.11'
55
keywords:
66
- mongodb

helm_chart/templates/operator.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ spec:
1717
app: {{ .Values.operator.name }}
1818
spec:
1919
serviceAccountName: {{ .Values.operator.name }}
20+
{{ if not .Values.managedSecurityContext }}
21+
securityContext:
22+
runAsNonRoot: true
23+
runAsUser: 2000
24+
{{ end }}
25+
2026
containers:
2127
- name: {{ .Values.operator.name }}
2228
image: {{ .Values.registry.repository }}/{{ .Values.operator.name }}:{{ .Values.operator.version }}
@@ -36,7 +42,7 @@ spec:
3642
fieldRef:
3743
fieldPath: metadata.namespace
3844
{{ end }}
39-
{{ if eq .Values.managedSecurityContext true}}
45+
{{ if eq .Values.managedSecurityContext true }}
4046
- name: MANAGED_SECURITY_CONTEXT
4147
value: 'true'
4248
{{ end }}

helm_chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ operator:
1616
name: mongodb-enterprise-operator
1717

1818
# Version of mongodb-enterprise-operator and mongodb-enterprise-database images
19-
version: '0.12'
19+
version: '1.0'
2020

2121
database:
2222
name: mongodb-enterprise-database

mongodb-enterprise.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,15 @@ spec:
131131
app: mongodb-enterprise-operator
132132
spec:
133133
serviceAccountName: mongodb-enterprise-operator
134+
135+
securityContext:
136+
runAsNonRoot: true
137+
runAsUser: 2000
138+
139+
134140
containers:
135141
- name: mongodb-enterprise-operator
136-
image: quay.io/mongodb/mongodb-enterprise-operator:0.12
142+
image: quay.io/mongodb/mongodb-enterprise-operator:1.0
137143
imagePullPolicy: Always
138144

139145
env:
@@ -147,7 +153,7 @@ spec:
147153

148154

149155
- name: MONGODB_ENTERPRISE_DATABASE_IMAGE
150-
value: quay.io/mongodb/mongodb-enterprise-database:0.12
156+
value: quay.io/mongodb/mongodb-enterprise-database:1.0
151157
- name: IMAGE_PULL_POLICY
152158
value: Always
153159

samples/extended/replica-set-persistent-volumes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ spec:
2828
persistent: true
2929
podSpec:
3030
cpu: '0.25'
31+
# note: it's important to always specify memory otherwise wired tiger cache will be calculated incorrectly and
32+
# monitoring tools will report the size of Kubernetes node instead of the real size of the container
3133
memory: 512M
3234
# "multiple" persistence allows to mount different directories to different Persistent Volumes
3335
persistence:

samples/extended/sharded-cluster-persistent-volumes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ spec:
2828
persistent: true
2929
configSrvPodSpec:
3030
cpu: '0.5'
31+
# note: it's important to always specify memory otherwise wired tiger cache will be calculated incorrectly and
32+
# monitoring tools will report the size of Kubernetes node instead of the real size of the container
3133
memory: 512M
3234

3335
# if "persistence" element is omitted then Operator uses the default size (5G) for mounting single Persistent Volume

samples/extended/standalone-persistent-volumes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ spec:
2424
persistent: true
2525
podSpec:
2626
cpu: '0.25'
27+
# note: it's important to always specify memory otherwise wired tiger cache will be calculated incorrectly and
28+
# monitoring tools will report the size of Kubernetes node instead of the real size of the container
2729
memory: 512M
2830
# "single" persistence allows to mount different directories to single Persistent Volume
2931
persistence:

0 commit comments

Comments
 (0)