-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed init container for Postgres DB pod
* The init container was used to workaround an issue with hugepages which seems to be solved. * After removing it, there is no need for privileged container and for DB scc Signed-off-by: Danny Zaken <[email protected]>
- Loading branch information
1 parent
4cb2938
commit e3054f3
Showing
8 changed files
with
220 additions
and
403 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: noobaa-db | ||
labels: | ||
app: noobaa | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
noobaa-db: noobaa | ||
serviceName: noobaa-db | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: noobaa | ||
noobaa-db: noobaa | ||
spec: | ||
serviceAccountName: noobaa-db | ||
terminationGracePeriodSeconds: 60 | ||
containers: | ||
#--------------------# | ||
# DATABASE CONTAINER # | ||
#--------------------# | ||
- name: db | ||
image: NOOBAA_DB_IMAGE | ||
command: | ||
- bash | ||
- -c | ||
- /opt/rh/rh-mongodb36/root/usr/bin/mongod --port 27017 --bind_ip_all --dbpath /data/mongo/cluster/shard1 | ||
resources: | ||
requests: | ||
cpu: "2" | ||
memory: "4Gi" | ||
limits: | ||
cpu: "2" | ||
memory: "4Gi" | ||
volumeMounts: | ||
- name: db | ||
mountPath: /data | ||
securityContext: | ||
runAsUser: 10001 | ||
runAsGroup: 0 | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: db | ||
labels: | ||
app: noobaa | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 50Gi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.