Skip to content

Commit

Permalink
K8SPSMDB-1132: add spec.secrets.keyFile field
Browse files Browse the repository at this point in the history
  • Loading branch information
pooknull committed Sep 12, 2024
1 parent 2ce97ae commit 4d391b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@
This chart deploys Percona Server for MongoDB Cluster on Kubernetes controlled by Percona Operator for MongoDB.

Useful links:

- [Operator Github repository](https://github.com/percona/percona-server-mongodb-operator)
- [Operator Documentation](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html)

## Pre-requisites
* Percona Operator for MongoDB running in your Kubernetes cluster. See installation details [here](https://github.com/percona/percona-helm-charts/blob/main/charts/psmdb-operator) or in the [Operator Documentation](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/helm.html).
* Kubernetes 1.27+
* Helm v3

- Percona Operator for MongoDB running in your Kubernetes cluster. See installation details [here](https://github.com/percona/percona-helm-charts/blob/main/charts/psmdb-operator) or in the [Operator Documentation](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/helm.html).
- Kubernetes 1.27+
- Helm v3

# Chart Details

This chart will deploy Percona Server for MongoDB Cluster in Kubernetes. It will create a Custom Resource, and the Operator will trigger the creation of corresponding Kubernetes primitives: StatefulSets, Pods, Secrets, etc.

## Installing the Chart

To install the chart with the `psmdb` release name using a dedicated namespace (recommended):

```sh
Expand Down Expand Up @@ -65,6 +69,7 @@ The chart can be customized using the following configurable parameters:
| |
| `secrets.users` | The name of the Secrets object for the MongoDB users required to run the operator | `""` |
| `secrets.encryptionKey` | Set secret for data at rest encryption key | `""` |
| `secrets.keyFile` | Specifies a secret key file for authenticating MongoDB instances | `""` |
| `secrets.vault` | Specifies a secret object to provide integration with HashiCorp Vault | `""` |
| `secrets.ldapSecret` | Specifies a secret object for LDAP over TLS connection between MongoDB and OpenLDAP server | `""` |
| `secrets.sse` | The name of the Secrets object for server side encryption credentials | `""` |
Expand Down Expand Up @@ -261,7 +266,6 @@ The chart can be customized using the following configurable parameters:
| `backup.tasks` | Backup working schedule | `{}` |
| `systemUsers` | PSMDB operator system users | `{}` |


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
1 change: 1 addition & 0 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ secrets: {}
# If not set the operator generates the default secret with name <cluster_name>-secrets
# users: my-cluster-name-secrets
# encryptionKey: my-cluster-name-mongodb-encryption-key
# keyFile: my-cluster-name-mongodb-keyfile
# vault: my-cluster-name-vault
# ldapSecret: my-ldap-secret
# sse: my-cluster-name-sse
Expand Down
2 changes: 2 additions & 0 deletions charts/psmdb-operator/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8860,6 +8860,8 @@ spec:
properties:
encryptionKey:
type: string
keyFile:
type: string
ldapSecret:
type: string
sse:
Expand Down

0 comments on commit 4d391b4

Please sign in to comment.