|
| 1 | +apiVersion: psmdb.percona.com/v1 |
| 2 | +kind: PerconaServerMongoDB |
| 3 | +metadata: |
| 4 | + name: some-name |
| 5 | +spec: |
| 6 | + #platform: openshift |
| 7 | + image: |
| 8 | + imagePullPolicy: Always |
| 9 | + backup: |
| 10 | + enabled: true |
| 11 | + image: perconalab/percona-server-mongodb-operator:1.1.0-backup |
| 12 | + storages: |
| 13 | + aws-s3: |
| 14 | + type: s3 |
| 15 | + s3: |
| 16 | + region: us-east-1 |
| 17 | + bucket: operator-testing |
| 18 | + prefix: psmdb-pitr-demand-backup-eks-credentials |
| 19 | + pitr: |
| 20 | + enabled: false |
| 21 | + oplogSpanMin: 2 |
| 22 | + runtimeClassName: container-rc |
| 23 | + sharding: |
| 24 | + enabled: true |
| 25 | + |
| 26 | + configsvrReplSet: |
| 27 | + size: 3 |
| 28 | + volumeSpec: |
| 29 | + persistentVolumeClaim: |
| 30 | + resources: |
| 31 | + requests: |
| 32 | + storage: 3Gi |
| 33 | + sidecars: |
| 34 | + - image: busybox |
| 35 | + command: ["/bin/sh"] |
| 36 | + args: ["-c", "while true; do echo echo $(date -u) 'test' >> /dev/null; sleep 5;done"] |
| 37 | + name: cfg-sidecar-1 |
| 38 | + runtimeClassName: container-rc |
| 39 | + |
| 40 | + mongos: |
| 41 | + size: 3 |
| 42 | + expose: |
| 43 | + exposeType: ClusterIP |
| 44 | + sidecars: |
| 45 | + - image: busybox |
| 46 | + command: ["/bin/sh"] |
| 47 | + args: ["-c", "while true; do echo echo $(date -u) 'test' >> /dev/null; sleep 5;done"] |
| 48 | + name: mongos-sidecar-1 |
| 49 | + runtimeClassName: container-rc |
| 50 | + |
| 51 | + |
| 52 | + replsets: |
| 53 | + - name: rs0 |
| 54 | + affinity: |
| 55 | + antiAffinityTopologyKey: none |
| 56 | + resources: |
| 57 | + limits: |
| 58 | + cpu: 500m |
| 59 | + memory: 1G |
| 60 | + requests: |
| 61 | + cpu: 100m |
| 62 | + memory: 0.1G |
| 63 | + volumeSpec: |
| 64 | + persistentVolumeClaim: |
| 65 | + resources: |
| 66 | + requests: |
| 67 | + storage: 1Gi |
| 68 | + runtimeClassName: container-rc |
| 69 | + size: 3 |
| 70 | + configuration: | |
| 71 | + operationProfiling: |
| 72 | + mode: slowOp |
| 73 | + slowOpThresholdMs: 100 |
| 74 | + security: |
| 75 | + enableEncryption: true |
| 76 | + redactClientLogData: false |
| 77 | + setParameter: |
| 78 | + ttlMonitorSleepSecs: 60 |
| 79 | + wiredTigerConcurrentReadTransactions: 128 |
| 80 | + wiredTigerConcurrentWriteTransactions: 128 |
| 81 | + storage: |
| 82 | + engine: wiredTiger |
| 83 | + wiredTiger: |
| 84 | + collectionConfig: |
| 85 | + blockCompressor: snappy |
| 86 | + engineConfig: |
| 87 | + directoryForIndexes: false |
| 88 | + journalCompressor: snappy |
| 89 | + indexConfig: |
| 90 | + prefixCompression: true |
| 91 | + - name: rs1 |
| 92 | + affinity: |
| 93 | + antiAffinityTopologyKey: none |
| 94 | + resources: |
| 95 | + limits: |
| 96 | + cpu: 500m |
| 97 | + memory: 1G |
| 98 | + requests: |
| 99 | + cpu: 100m |
| 100 | + memory: 0.1G |
| 101 | + volumeSpec: |
| 102 | + persistentVolumeClaim: |
| 103 | + resources: |
| 104 | + requests: |
| 105 | + storage: 1Gi |
| 106 | + size: 3 |
| 107 | + configuration: | |
| 108 | + operationProfiling: |
| 109 | + mode: slowOp |
| 110 | + slowOpThresholdMs: 100 |
| 111 | + security: |
| 112 | + enableEncryption: true |
| 113 | + redactClientLogData: false |
| 114 | + setParameter: |
| 115 | + ttlMonitorSleepSecs: 60 |
| 116 | + wiredTigerConcurrentReadTransactions: 128 |
| 117 | + wiredTigerConcurrentWriteTransactions: 128 |
| 118 | + storage: |
| 119 | + engine: wiredTiger |
| 120 | + wiredTiger: |
| 121 | + collectionConfig: |
| 122 | + blockCompressor: snappy |
| 123 | + engineConfig: |
| 124 | + directoryForIndexes: false |
| 125 | + journalCompressor: snappy |
| 126 | + indexConfig: |
| 127 | + prefixCompression: true |
| 128 | + - name: rs2 |
| 129 | + affinity: |
| 130 | + antiAffinityTopologyKey: none |
| 131 | + resources: |
| 132 | + limits: |
| 133 | + cpu: 500m |
| 134 | + memory: 1G |
| 135 | + requests: |
| 136 | + cpu: 100m |
| 137 | + memory: 0.1G |
| 138 | + volumeSpec: |
| 139 | + persistentVolumeClaim: |
| 140 | + resources: |
| 141 | + requests: |
| 142 | + storage: 1Gi |
| 143 | + size: 3 |
| 144 | + configuration: | |
| 145 | + operationProfiling: |
| 146 | + mode: slowOp |
| 147 | + slowOpThresholdMs: 100 |
| 148 | + security: |
| 149 | + enableEncryption: true |
| 150 | + redactClientLogData: false |
| 151 | + setParameter: |
| 152 | + ttlMonitorSleepSecs: 60 |
| 153 | + wiredTigerConcurrentReadTransactions: 128 |
| 154 | + wiredTigerConcurrentWriteTransactions: 128 |
| 155 | + storage: |
| 156 | + engine: wiredTiger |
| 157 | + wiredTiger: |
| 158 | + collectionConfig: |
| 159 | + blockCompressor: snappy |
| 160 | + engineConfig: |
| 161 | + directoryForIndexes: false |
| 162 | + journalCompressor: snappy |
| 163 | + indexConfig: |
| 164 | + prefixCompression: true |
| 165 | + sidecars: |
| 166 | + - image: busybox |
| 167 | + command: ["/bin/sh"] |
| 168 | + args: ["-c", "while true; do echo echo $(date -u) 'test' >> /dev/null; sleep 5;done"] |
| 169 | + name: rs-sidecar-1 |
| 170 | + secrets: |
| 171 | + users: some-users |
0 commit comments