forked from christianh814/openshift-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathds-withstorage.yaml
86 lines (86 loc) · 2.15 KB
/
ds-withstorage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: custom-mongo-shard1
spec:
template:
metadata:
labels:
app: custom-mongo-shard1
spec:
nodeSelector:
app: custom-mongo-shard1
containers:
- name: custom-mongo-shard1
image: docker-registry.default.svc:5000/customshardmongo/mongo-shard1:3.6
imagePullPolicy: Always
ports:
- containerPort: 27018
hostPort: 27018
volumeMounts:
- mountPath: /var/lib/mongodb/data
name: shard1-storage
- mountPath: /etc/mongo
name: shard1-config
volumes:
- name: shard1-storage
persistentVolumeClaim:
claimName: ks-shard1-ds
- configMap:
defaultMode: 420
name: custom-mongo-shard1-config
name: shard1-config
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ks-shard1-ds
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 75Gi
---
apiVersion: v1
data:
mongod-shard1.conf: |
##
## For list of options visit:
## https://docs.mongodb.org/manual/reference/configuration-options/
##
## For Mongo SHARD Configuration Only
##
# systemLog Options - How to do logging
# where to write logging data.
# quiet: true
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# how the process runs
# ProcessManagement:
# fork: true # fork and run in background
# pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
# timeZoneInfo: /usr/share/zoneinfo
# net Options - Network interfaces settings
net:
# Specify port number (27018 by default for Shards)
port: 27018
bindIp: 0.0.0.0
# storage Options - How and Where to store data
storage:
# Directory for datafiles
dbPath: /var/lib/mongodb/data
# journal:
# enabled: true
#replication:
replication:
replSetName: "ks-shard-1"
#sharding:
sharding:
clusterRole: shardsvr
kind: ConfigMap
metadata:
creationTimestamp: null
name: custom-mongo-shard1-config