Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,58 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pbm-agent-entrypoint
command:
- /opt/percona/pbm-entry.sh
env:
- name: PBM_AGENT_MONGODB_USERNAME
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_USER
name: internal-some-name-users
optional: false
- name: PBM_AGENT_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_PASSWORD
name: internal-some-name-users
optional: false
- name: PBM_MONGODB_REPLSET
value: cfg
- name: PBM_MONGODB_PORT
value: "27017"
- name: PBM_AGENT_SIDECAR
value: "true"
- name: PBM_AGENT_SIDECAR_SLEEP
value: "5"
- name: SHARDED
value: "TRUE"
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PBM_MONGODB_URI
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
imagePullPolicy: Always
name: backup-agent
resources: {}
securityContext:
runAsNonRoot: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mongodb-ssl
name: ssl
readOnly: true
- mountPath: /opt/percona
name: bin
readOnly: true
- mountPath: /data/db
name: mongod-data
dnsPolicy: ClusterFirst
initContainers:
- command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,58 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pbm-agent-entrypoint
command:
- /opt/percona/pbm-entry.sh
env:
- name: PBM_AGENT_MONGODB_USERNAME
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_USER
name: internal-some-name-users
optional: false
- name: PBM_AGENT_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_PASSWORD
name: internal-some-name-users
optional: false
- name: PBM_MONGODB_REPLSET
value: cfg
- name: PBM_MONGODB_PORT
value: "27017"
- name: PBM_AGENT_SIDECAR
value: "true"
- name: PBM_AGENT_SIDECAR_SLEEP
value: "5"
- name: SHARDED
value: "TRUE"
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PBM_MONGODB_URI
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
imagePullPolicy: Always
name: backup-agent
resources: {}
securityContext:
runAsNonRoot: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mongodb-ssl
name: ssl
readOnly: true
- mountPath: /opt/percona
name: bin
readOnly: true
- mountPath: /data/db
name: mongod-data
dnsPolicy: ClusterFirst
initContainers:
- command:
Expand Down
53 changes: 53 additions & 0 deletions e2e-tests/expose-sharded/compare/statefulset_some-name-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,59 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pbm-agent-entrypoint
command:
- /opt/percona/pbm-entry.sh
env:
- name: PBM_AGENT_MONGODB_USERNAME
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_USER
name: internal-some-name-users
optional: false
- name: PBM_AGENT_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_PASSWORD
name: internal-some-name-users
optional: false
- name: PBM_MONGODB_REPLSET
value: cfg
- name: PBM_MONGODB_PORT
value: "27017"
- name: PBM_AGENT_SIDECAR
value: "true"
- name: PBM_AGENT_SIDECAR_SLEEP
value: "5"
- name: SHARDED
value: "TRUE"
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PBM_MONGODB_URI
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
imagePullPolicy: Always
name: backup-agent
resources: {}
securityContext:
runAsNonRoot: true
runAsUser: 1001
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mongodb-ssl
name: ssl
readOnly: true
- mountPath: /opt/percona
name: bin
readOnly: true
- mountPath: /data/db
name: mongod-data
dnsPolicy: ClusterFirst
initContainers:
- command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,58 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pbm-agent-entrypoint
command:
- /opt/percona/pbm-entry.sh
env:
- name: PBM_AGENT_MONGODB_USERNAME
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_USER
name: internal-some-name-users
optional: false
- name: PBM_AGENT_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_PASSWORD
name: internal-some-name-users
optional: false
- name: PBM_MONGODB_REPLSET
value: rs0
- name: PBM_MONGODB_PORT
value: "27017"
- name: PBM_AGENT_SIDECAR
value: "true"
- name: PBM_AGENT_SIDECAR_SLEEP
value: "5"
- name: SHARDED
value: "TRUE"
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PBM_MONGODB_URI
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
imagePullPolicy: Always
name: backup-agent
resources: {}
securityContext:
runAsNonRoot: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mongodb-ssl
name: ssl
readOnly: true
- mountPath: /opt/percona
name: bin
readOnly: true
- mountPath: /data/db
name: mongod-data
dnsPolicy: ClusterFirst
initContainers:
- command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,58 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pbm-agent-entrypoint
command:
- /opt/percona/pbm-entry.sh
env:
- name: PBM_AGENT_MONGODB_USERNAME
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_USER
name: internal-some-name-users
optional: false
- name: PBM_AGENT_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
key: MONGODB_BACKUP_PASSWORD
name: internal-some-name-users
optional: false
- name: PBM_MONGODB_REPLSET
value: rs0
- name: PBM_MONGODB_PORT
value: "27017"
- name: PBM_AGENT_SIDECAR
value: "true"
- name: PBM_AGENT_SIDECAR_SLEEP
value: "5"
- name: SHARDED
value: "TRUE"
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PBM_MONGODB_URI
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
imagePullPolicy: Always
name: backup-agent
resources: {}
securityContext:
runAsNonRoot: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mongodb-ssl
name: ssl
readOnly: true
- mountPath: /opt/percona
name: bin
readOnly: true
- mountPath: /data/db
name: mongod-data
dnsPolicy: ClusterFirst
initContainers:
- command:
Expand Down
Loading
Loading