underpost 2.8.52 → 2.8.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/bin/build.js +20 -4
- package/bin/deploy.js +64 -52
- package/bin/hwt.js +0 -10
- package/bin/index.js +21 -16
- package/bin/util.js +0 -7
- package/conf.js +0 -2
- package/docker-compose.yml +1 -1
- package/manifests/mongodb-4.4/kustomization.yaml +7 -0
- package/manifests/mongodb-4.4/service-deployment.yaml +63 -0
- package/package.json +2 -1
- package/src/cli/cluster.js +19 -19
- package/src/cli/cron.js +1 -1
- package/src/cli/deploy.js +43 -30
- package/src/cli/image.js +1 -18
- package/src/cli/script.js +25 -1
- package/src/cli/test.js +28 -4
- package/src/db/mongo/MongooseDB.js +17 -1
- package/src/index.js +1 -1
- package/src/server/backup.js +2 -2
- package/src/server/conf.js +4 -10
- package/src/server/dns.js +37 -44
- package/src/server/downloader.js +0 -8
- package/test/api.test.js +0 -8
- package/manifests/core/kustomization.yaml +0 -11
- package/manifests/core/underpost-engine-backup-access.yaml +0 -16
- package/manifests/core/underpost-engine-backup-pv-pvc.yaml +0 -22
- package/manifests/core/underpost-engine-headless-service.yaml +0 -10
- package/manifests/core/underpost-engine-mongodb-backup-cronjob.yaml +0 -40
- package/manifests/core/underpost-engine-mongodb-configmap.yaml +0 -26
- package/manifests/core/underpost-engine-statefulset.yaml +0 -91
- /package/manifests/{core/underpost-engine-pv-pvc.yaml → mongodb-4.4/pv-pvc.yaml} +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
apiVersion: apps/v1
|
|
2
|
-
kind: StatefulSet
|
|
3
|
-
metadata:
|
|
4
|
-
name: mongodb # Specifies the name of the statefulset
|
|
5
|
-
spec:
|
|
6
|
-
serviceName: 'mongodb-service' # Specifies the service to use
|
|
7
|
-
replicas: 2
|
|
8
|
-
selector:
|
|
9
|
-
matchLabels:
|
|
10
|
-
app: mongodb
|
|
11
|
-
template:
|
|
12
|
-
metadata:
|
|
13
|
-
labels:
|
|
14
|
-
app: mongodb
|
|
15
|
-
spec:
|
|
16
|
-
containers:
|
|
17
|
-
- name: mongodb
|
|
18
|
-
image: docker.io/library/mongo:latest
|
|
19
|
-
command:
|
|
20
|
-
- mongod
|
|
21
|
-
- '--replSet'
|
|
22
|
-
- 'rs0'
|
|
23
|
-
# - '--config'
|
|
24
|
-
# - '-f'
|
|
25
|
-
# - '/etc/mongod.conf'
|
|
26
|
-
# - '--auth'
|
|
27
|
-
# - '--clusterAuthMode'
|
|
28
|
-
# - 'keyFile'
|
|
29
|
-
# - '--keyFile'
|
|
30
|
-
# - '/etc/mongodb-keyfile'
|
|
31
|
-
# - '--interleave'
|
|
32
|
-
# - 'all'
|
|
33
|
-
# - '--wiredTigerCacheSizeGB'
|
|
34
|
-
# - '0.25'
|
|
35
|
-
# - '--setParameter'
|
|
36
|
-
# - 'authenticationMechanisms=SCRAM-SHA-1'
|
|
37
|
-
# - '--fork'
|
|
38
|
-
- '--logpath'
|
|
39
|
-
- '/var/log/mongodb/mongod.log'
|
|
40
|
-
- '--bind_ip_all'
|
|
41
|
-
ports:
|
|
42
|
-
- containerPort: 27017
|
|
43
|
-
volumeMounts:
|
|
44
|
-
- name: mongodb-storage
|
|
45
|
-
mountPath: /data/db
|
|
46
|
-
- name: keyfile
|
|
47
|
-
mountPath: /etc/mongodb-keyfile
|
|
48
|
-
readOnly: true
|
|
49
|
-
# - name: mongodb-configuration-file
|
|
50
|
-
# mountPath: /etc/mongod.conf
|
|
51
|
-
# subPath: mongod.conf
|
|
52
|
-
# readOnly: true
|
|
53
|
-
# - name: mongodb-config
|
|
54
|
-
# mountPath: /config
|
|
55
|
-
env:
|
|
56
|
-
- name: MONGO_INITDB_ROOT_USERNAME
|
|
57
|
-
valueFrom:
|
|
58
|
-
secretKeyRef:
|
|
59
|
-
name: mongodb-secret
|
|
60
|
-
key: username
|
|
61
|
-
- name: MONGO_INITDB_ROOT_PASSWORD
|
|
62
|
-
valueFrom:
|
|
63
|
-
secretKeyRef:
|
|
64
|
-
name: mongodb-secret
|
|
65
|
-
key: password
|
|
66
|
-
resources:
|
|
67
|
-
requests:
|
|
68
|
-
cpu: '100m'
|
|
69
|
-
memory: '256Mi'
|
|
70
|
-
limits:
|
|
71
|
-
cpu: '500m'
|
|
72
|
-
memory: '512Mi'
|
|
73
|
-
volumes:
|
|
74
|
-
- name: keyfile
|
|
75
|
-
secret:
|
|
76
|
-
secretName: mongodb-keyfile
|
|
77
|
-
defaultMode: 0400
|
|
78
|
-
# - name: mongodb-configuration-file
|
|
79
|
-
# configMap:
|
|
80
|
-
# name: mongodb-config-file
|
|
81
|
-
# - name: mongodb-config
|
|
82
|
-
# configMap:
|
|
83
|
-
# name: mongodb-config
|
|
84
|
-
volumeClaimTemplates:
|
|
85
|
-
- metadata:
|
|
86
|
-
name: mongodb-storage
|
|
87
|
-
spec:
|
|
88
|
-
accessModes: ['ReadWriteOnce']
|
|
89
|
-
resources:
|
|
90
|
-
requests:
|
|
91
|
-
storage: 5Gi
|
|
File without changes
|