Skip to content

Commit 82ae079

Browse files
eleo007egegunes
authored andcommitted
K8SPSMDB-1265: update oc compare for rs-shard-migration (#1909)
1 parent 18ac3ff commit 82ae079

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

e2e-tests/rs-shard-migration/compare/statefulset_some-name-rs0-oc.yml

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ spec:
5555
- --encryptionKeyFile=/etc/mongodb-encryption/encryption-key
5656
- --wiredTigerCacheSizeGB=0.25
5757
- --wiredTigerIndexPrefixCompression=true
58-
- --config=/etc/mongodb-config/mongod.conf
5958
- --quiet
6059
command:
6160
- /opt/percona/ps-entry.sh
@@ -131,8 +130,6 @@ spec:
131130
- mountPath: /etc/mongodb-ssl-internal
132131
name: ssl-internal
133132
readOnly: true
134-
- mountPath: /etc/mongodb-config
135-
name: config
136133
- mountPath: /opt/percona
137134
name: bin
138135
- mountPath: /etc/mongodb-encryption
@@ -141,6 +138,56 @@ spec:
141138
- mountPath: /etc/users-secret
142139
name: users-secret-file
143140
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
144191
dnsPolicy: ClusterFirst
145192
initContainers:
146193
- command:
@@ -175,11 +222,6 @@ spec:
175222
secretName: some-name-mongodb-keyfile
176223
- emptyDir: {}
177224
name: bin
178-
- configMap:
179-
defaultMode: 420
180-
name: some-name-rs0-mongod
181-
optional: true
182-
name: config
183225
- name: some-name-mongodb-encryption-key
184226
secret:
185227
defaultMode: 288

0 commit comments

Comments
 (0)