Skip to content

Commit

Permalink
resolved pr comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tarun Singh <[email protected]>
  • Loading branch information
tarunsinghot committed Dec 13, 2024
1 parent 03d5a2d commit 69782ad
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 7 deletions.
50 changes: 49 additions & 1 deletion charts/psmdb-operator-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,35 @@ helm dependency build
helm install my-db <path-to-chart> --namespace my-namespace
```

The chart can be customized using the following configurable parameters:
#These parameters are for psmdb-operator:

| Parameter | Description | Default |
| ---------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| `image.repository` | PSMDB Operator Container image name | `percona/percona-server-mongodb-operator` |
| `image.tag` | PSMDB Operator Container image tag | `1.18.0` |
| `image.pullPolicy` | PSMDB Operator Container pull policy | `Always` |
| `image.pullSecrets` | PSMDB Operator Pod pull secret | `[]` |
| `replicaCount` | PSMDB Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `annotations` | PSMDB Operator Deployment annotations | `{}` |
| `podAnnotations` | PSMDB Operator Pod annotations | `{}` |
| `labels` | PSMDB Operator Deployment labels | `{}` |
| `podLabels` | PSMDB Operator Pod labels | `{}` |
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
| `podAnnotations` | Annotations for pod | `{}` |
| `podSecurityContext` | Pod Security Context | `{}` |
| `watchNamespace` | Set when a different from default namespace is needed to watch (comma separated if multiple needed) | `""` |
| `createNamespace` | Set if you want to create watched namespaces with helm | `false` |
| `rbac.create` | If false RBAC will not be created. RBAC resources will need to be created manually | `true` |
| `securityContext` | Container Security Context | `{}` |
| `serviceAccount.create` | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | `true` |
| `serviceAccount.annotations` | PSMDB Operator ServiceAccount annotations | `{}` |
| `logStructured` | Force PSMDB operator to print JSON-wrapped log messages | `false` |
| `logLevel` | PSMDB Operator logging level | `INFO` |
| `disableTelemetry` | Disable sending PSMDB Operator telemetry data to Percona | `false` |

#These parameters are for psmdb-db:

| Parameter | Description | Default |
| ------------------------------- | ------------------------------------------------------------------------------|---------------------------------------|
Expand Down Expand Up @@ -249,6 +277,26 @@ The chart can be customized using the following configurable parameters:
| `backup.tasks` | Backup working schedule | `{}` |
| `users` | PSMDB essential users | `{}` |

#These parameters are for backup:

| Parameter | Description |
| --------------- | -------------------------------------------------- |
| `annotations` | Annotations for the resource |
| `name` | Name of the backup resource |
| `labels` | Labels for the resource |
| `clusterName` | Name of the MongoDB cluster to backup |
| `storageName` | Name of the storage configuration for the backup |
| `type` | Type of the backup operation |

#These parameters are for restore:

| Parameter | Description |
| --------------- | -------------------------------------------------- |
| `annotations` | Annotations for the resource |
| `name` | Name of the restore resource |
| `labels` | Labels for the resource |
| `clusterName` | Name of the MongoDB cluster to restore |
| `backupName` | Name of the backup to restore from |

Specify parameters using `--set key=value[,key=value]` argument to `helm install`
Notice that you can use multiple replica sets only with sharding enabled.
Expand Down
12 changes: 6 additions & 6 deletions charts/psmdb-operator-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -785,21 +785,21 @@ backup:
enabled: true
annotations:
description: "test"
name: backup
name: backup #specify the backup name. You will use this name to restore from this backup
labels:
app: mongo-backup
environment: testing
clusterName: mdb-db-psmdb-db
storageName: azure-blob
clusterName: mdb-db-psmdb-db #specify the name of your cluster. This is the name you specified when deploying Percona Server for MongoDB.
storageName: azure-blob #specify the name of your already configured storage.
type: logical

restore:
enabled: true
annotations:
description: "test"
name: restore1
name: restore1 #name of the restore
labels:
app: mongo-restore
environment: testing
clusterName: mdb-db-psmdb-db
backupName: backup
clusterName: mdb-db-psmdb-db #name of the target cluster to restore the backup on
backupName: backup #name of the backup

0 comments on commit 69782ad

Please sign in to comment.