55
55
- --encryptionKeyFile=/etc/mongodb-encryption/encryption-key
56
56
- --wiredTigerCacheSizeGB=0.25
57
57
- --wiredTigerIndexPrefixCompression=true
58
- - --config=/etc/mongodb-config/mongod.conf
59
58
- --quiet
60
59
command :
61
60
- /opt/percona/ps-entry.sh
@@ -131,8 +130,6 @@ spec:
131
130
- mountPath : /etc/mongodb-ssl-internal
132
131
name : ssl-internal
133
132
readOnly : true
134
- - mountPath : /etc/mongodb-config
135
- name : config
136
133
- mountPath : /opt/percona
137
134
name : bin
138
135
- mountPath : /etc/mongodb-encryption
@@ -141,6 +138,56 @@ spec:
141
138
- mountPath : /etc/users-secret
142
139
name : users-secret-file
143
140
workingDir : /data/db
141
+ - args :
142
+ - pbm-agent-entrypoint
143
+ command :
144
+ - /opt/percona/pbm-entry.sh
145
+ env :
146
+ - name : PBM_AGENT_MONGODB_USERNAME
147
+ valueFrom :
148
+ secretKeyRef :
149
+ key : MONGODB_BACKUP_USER_ESCAPED
150
+ name : internal-some-name-users
151
+ optional : false
152
+ - name : PBM_AGENT_MONGODB_PASSWORD
153
+ valueFrom :
154
+ secretKeyRef :
155
+ key : MONGODB_BACKUP_PASSWORD_ESCAPED
156
+ name : internal-some-name-users
157
+ optional : false
158
+ - name : PBM_MONGODB_REPLSET
159
+ value : rs0
160
+ - name : PBM_MONGODB_PORT
161
+ value : " 27017"
162
+ - name : PBM_AGENT_SIDECAR
163
+ value : " true"
164
+ - name : PBM_AGENT_SIDECAR_SLEEP
165
+ value : " 5"
166
+ - name : POD_NAME
167
+ valueFrom :
168
+ fieldRef :
169
+ apiVersion : v1
170
+ fieldPath : metadata.name
171
+ - name : PBM_MONGODB_URI
172
+ value : mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@localhost:$(PBM_MONGODB_PORT)/?tls=true&tlsCertificateKeyFile=/tmp/tls.pem&tlsCAFile=/etc/mongodb-ssl/ca.crt&tlsInsecure=true
173
+ - name : PBM_AGENT_TLS_ENABLED
174
+ value : " true"
175
+ imagePullPolicy : Always
176
+ name : backup-agent
177
+ resources : {}
178
+ securityContext :
179
+ runAsNonRoot : true
180
+ terminationMessagePath : /dev/termination-log
181
+ terminationMessagePolicy : File
182
+ volumeMounts :
183
+ - mountPath : /etc/mongodb-ssl
184
+ name : ssl
185
+ readOnly : true
186
+ - mountPath : /opt/percona
187
+ name : bin
188
+ readOnly : true
189
+ - mountPath : /data/db
190
+ name : mongod-data
144
191
dnsPolicy : ClusterFirst
145
192
initContainers :
146
193
- command :
@@ -175,11 +222,6 @@ spec:
175
222
secretName : some-name-mongodb-keyfile
176
223
- emptyDir : {}
177
224
name : bin
178
- - configMap :
179
- defaultMode : 420
180
- name : some-name-rs0-mongod
181
- optional : true
182
- name : config
183
225
- name : some-name-mongodb-encryption-key
184
226
secret :
185
227
defaultMode : 288
0 commit comments