Skip to content

Commit

Permalink
Merge pull request #367 from percona/K8SPSMDB-1098-psmdb-1170
Browse files Browse the repository at this point in the history
K8SPSMDB-1098 - Update psmdb-operator chart for 1.17.0 release
  • Loading branch information
jvpasinatto authored Sep 10, 2024
2 parents e659eb8 + f7bc218 commit da71bae
Show file tree
Hide file tree
Showing 9 changed files with 538 additions and 273 deletions.
4 changes: 2 additions & 2 deletions charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "1.16.2"
appVersion: "1.17.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.16.4
version: 1.17.0
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
461 changes: 236 additions & 225 deletions charts/psmdb-db/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions charts/psmdb-db/templates/cluster-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if hasKey .Values "users" }}
{{- if hasKey .Values "systemUsers" }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -8,5 +8,5 @@ metadata:
{{ include "psmdb-database.labels" . | indent 4 }}
type: Opaque
stringData:
{{ .Values.users | toYaml | indent 2 }}
{{ .Values.systemUsers | toYaml | indent 2 }}
{{- end -}}
10 changes: 10 additions & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ spec:
enabled: {{ .Values.pmm.enabled }}
image: "{{ .Values.pmm.image.repository }}:{{ .Values.pmm.image.tag }}"
serverHost: {{ .Values.pmm.serverHost }}
{{- if .Values.pmm.containerSecurityContext }}
containerSecurityContext:
{{ .Values.pmm.containerSecurityContext | toYaml | indent 6 }}
{{- end }}

replsets:
{{- range $k,$replset := .Values.replsets }}
{{- if $replset.name }}
Expand Down Expand Up @@ -568,6 +573,11 @@ spec:
{{ .Values.sharding.mongos.hostAliases | toYaml | indent 8 }}
{{- end }}

{{- if .Values.users }}
users:
{{ .Values.users | toYaml | indent 2 }}
{{- end }}

backup:
enabled: {{ .Values.backup.enabled }}
{{- if .Values.backup.annotations }}
Expand Down
43 changes: 32 additions & 11 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

finalizers:
## Set this if you want that operator deletes the primary pod last
- delete-psmdb-pods-in-order
- percona.com/delete-psmdb-pods-in-order
## Set this if you want to delete database persistent volumes on cluster deletion
# - delete-psmdb-pvc
# - percona.com/delete-psmdb-pvc

nameOverride: ""
fullnameOverride: ""

crVersion: 1.16.2
crVersion: 1.17.0
pause: false
unmanaged: false
unsafeFlags:
Expand Down Expand Up @@ -46,13 +46,13 @@ upgradeOptions:

image:
repository: percona/percona-server-mongodb
tag: 7.0.8-5
tag: 7.0.12-7

imagePullPolicy: Always
# imagePullSecrets: []
# initImage:
# repository: percona/percona-server-mongodb-operator
# tag: 1.14.0
# tag: 1.17.0
# initContainerSecurityContext: {}
# tls:
# mode: preferTLS
Expand All @@ -76,8 +76,9 @@ pmm:
enabled: false
image:
repository: percona/pmm-client
tag: 2.41.2
tag: 2.42.0
serverHost: monitoring-service
# containerSecurityContext: {}

replsets:
rs0:
Expand Down Expand Up @@ -478,22 +479,42 @@ sharding:
# - "host1"
# - "host2"

# users:
# - name: my-user
# db: admin
# passwordSecretRef:
# name: my-user-password
# key: my-user-password-key
# roles:
# - name: clusterAdmin
# db: admin
# - name: userAdminAnyDatabase
# db: admin
# - name: my-usr
# db: admin
# passwordSecretRef:
# name: my-user-pwd
# key: my-user-pwd-key
# roles:
# - name: dbOwner
# db: sometest

backup:
enabled: true
image:
repository: percona/percona-backup-mongodb
tag: 2.4.1
tag: 2.5.0
# annotations:
# iam.amazonaws.com/role: role-arn
# podSecurityContext: {}
# containerSecurityContext: {}
# resources:
# limits:
# cpu: "300m"
# memory: "0.5G"
# memory: "1.2G"
# requests:
# cpu: "300m"
# memory: "0.5G"
# memory: "1G"
storages:
# s3-us-west:
# type: s3
Expand Down Expand Up @@ -576,8 +597,8 @@ backup:
# compressionType: gzip
# compressionLevel: 6

# If you set users here the secret will be constructed by helm with these values
# users:
# If you set systemUsers here the secret will be constructed by helm with these values
# systemUsers:
# MONGODB_BACKUP_USER: backup
# MONGODB_BACKUP_PASSWORD: backup123456
# MONGODB_DATABASE_ADMIN_USER: databaseAdmin
Expand Down
4 changes: 2 additions & 2 deletions charts/psmdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "1.16.2"
appVersion: "1.17.0"
description: A Helm chart for deploying the Percona Operator for MongoDB
name: psmdb-operator
home: https://docs.percona.com/percona-operator-for-mongodb/
version: 1.16.3
version: 1.17.0
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
54 changes: 27 additions & 27 deletions charts/psmdb-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Useful links:
- [Operator Documentation](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html)

## Pre-requisites
* Kubernetes 1.26+
* Kubernetes 1.27+
* Helm v3

# Installation
Expand All @@ -19,36 +19,36 @@ To install the chart with the `psmdb` release name using a dedicated namespace (

```sh
helm repo add percona https://percona.github.io/percona-helm-charts/
helm install my-operator percona/psmdb-operator --version 1.16.2 --namespace my-namespace
helm install my-operator percona/psmdb-operator --version 1.17.0 --namespace my-namespace
```

The chart can be customized using the following configurable parameters:

| Parameter | Description | Default |
| ------------------------------- | ------------------------------------------------------------------------------| ------------------------------------------|
| `image.repository` | PSMDB Operator Container image name | `percona/percona-server-mongodb-operator` |
| `image.tag` | PSMDB Operator Container image tag | `1.16.2` |
| `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` |
| Parameter | Description | Default |
| ---------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| `image.repository` | PSMDB Operator Container image name | `percona/percona-server-mongodb-operator` |
| `image.tag` | PSMDB Operator Container image tag | `1.17.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` |

Specify parameters using `--set key=value[,key=value]` argument to `helm install`

Expand Down
Loading

0 comments on commit da71bae

Please sign in to comment.