diff --git a/charts/psmdb-db/Chart.yaml b/charts/psmdb-db/Chart.yaml index 830a6bfc..cf71ea7b 100644 --- a/charts/psmdb-db/Chart.yaml +++ b/charts/psmdb-db/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v1 -appVersion: "1.7.0" +appVersion: "1.8.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.7.0 +version: 1.8.0 maintainers: - name: cap1984 email: ivan.pylypenko@percona.com diff --git a/charts/psmdb-db/README.md b/charts/psmdb-db/README.md index e04e0728..5fa1f25a 100644 --- a/charts/psmdb-db/README.md +++ b/charts/psmdb-db/README.md @@ -5,7 +5,7 @@ This chart implements Percona Server MongoDB deployment in Kubernets via Custom ## Pre-requisites * [PSMDB operator](https://hub.helm.sh/charts/percona/psmdb-operator) running in you K8S cluster -* Kubernetes 1.15+ +* Kubernetes 1.16+ * PV support on the underlying infrastructure - only if you are provisioning persistent volume(s). * At least `v2.5.0` version of helm @@ -24,7 +24,7 @@ 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-db percona/psmdb-db --version 1.7.0 --namespace my-namespace +helm install my-db percona/psmdb-db --version 1.8.0 --namespace my-namespace ``` The chart can be customized using the following configurable parameters: @@ -35,10 +35,11 @@ The chart can be customized using the following configurable parameters: | `allowUnsafeConfigurations` | Allows forbidden configurations like even number of PSMDB cluster pods | `false` | | `updateStrategy` | Regulates the way how PSMDB Cluster Pods will be updated after setting a new image | `SmartUpdate` | | `upgradeOptions.versionServiceEndpoint` | Endpoint for actual PSMDB Versions provider | `https://check.percona.com/versions/` | -| `upgradeOptions.apply` | PSMDB image to apply from version service - recommended, latest, actual version like 4.4.2-4 | `recommended` | +| `upgradeOptions.apply` | PSMDB image to apply from version service - recommended, latest, actual version like 4.4.2-4 | `4.4-recommended` | | `upgradeOptions.schedule` | Cron formatted time to execute the update | `"0 2 * * *"` | +| `upgradeOptions.setFCV` | Set feature compatibility version on major upgrade | `false` | | `image.repository` | PSMDB Container image repository | `percona/percona-server-mongodb` | -| `image.tag` | PSMDB Container image tag | `4.4.3-5` | +| `image.tag` | PSMDB Container image tag | `4.4.5-7` | | `imagePullSecrets` | PSMDB Container pull secret | `[]` | | `runUid` | Set UserID | `""` | | `secrets` | Users secret structure | `{}` | @@ -120,9 +121,10 @@ The chart can be customized using the following configurable parameters: | `backup.enabled` | Enable backup PBM agent | `true` | | `backup.restartOnFailure` | Backup Pods restart policy | `true` | | `backup.image.repository` | PBM Container image repository | `percona/percona-server-mongodb-operator` | -| `backup.image.tag` | PBM Container image tag | `1.7.0-backup` | +| `backup.image.tag` | PBM Container image tag | `1.8.0-backup` | | `backup.serviceAccountName` | Run PBM Container under specified K8S SA | `percona-server-mongodb-operator` | | `backup.storages` | Local/remote backup storages settings | `{}` | +| `backup.pitr.enabled` | Enable point in time recovery for backup | `false` | | `backup.tasks` | Backup working schedule | `{}` | | `users` | PSMDB essential users | `{}` | diff --git a/charts/psmdb-db/crds/crd.yaml b/charts/psmdb-db/crds/crd.yaml index 10c01864..3744fc1c 100644 --- a/charts/psmdb-db/crds/crd.yaml +++ b/charts/psmdb-db/crds/crd.yaml @@ -35,6 +35,9 @@ spec: storage: false served: true - name: v1-7-0 + storage: false + served: true + - name: v1-8-0 storage: true served: true - name: v1alpha1 diff --git a/charts/psmdb-db/production-values.yaml b/charts/psmdb-db/production-values.yaml index 02b7beae..ac732664 100644 --- a/charts/psmdb-db/production-values.yaml +++ b/charts/psmdb-db/production-values.yaml @@ -22,10 +22,11 @@ upgradeOptions: versionServiceEndpoint: https://check.percona.com apply: disabled schedule: "0 2 * * *" + setFCV: false image: repository: percona/percona-server-mongodb - tag: 4.4.3-5 + tag: 4.4.5-7 # imagePullSecrets: [] # runUid: 1001 @@ -167,7 +168,7 @@ backup: restartOnFailure: true image: repository: percona/percona-server-mongodb-operator - tag: 1.7.0-backup + tag: 1.8.0-backup serviceAccountName: percona-server-mongodb-operator # resources: # limits: @@ -190,6 +191,8 @@ backup: # region: us-east-1 # credentialsSecret: my-cluster-name-backup-minio # endpointUrl: http://minio.psmdb.svc.cluster.local:9000/minio/ + pitr: + enabled: false tasks: # - name: daily-s3-us-west # enabled: true diff --git a/charts/psmdb-db/templates/cluster.yaml b/charts/psmdb-db/templates/cluster.yaml index c295e16e..9f3faf3c 100644 --- a/charts/psmdb-db/templates/cluster.yaml +++ b/charts/psmdb-db/templates/cluster.yaml @@ -1,9 +1,9 @@ -apiVersion: psmdb.percona.com/v1-7-0 +apiVersion: psmdb.percona.com/v1-8-0 kind: PerconaServerMongoDB metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | - {"apiVersion":"psmdb.percona.com/v1-7-0","kind":"PerconaServerMongoDB"} + {"apiVersion":"psmdb.percona.com/v1-8-0","kind":"PerconaServerMongoDB"} name: {{ include "psmdb-database.fullname" . }} labels: {{ include "psmdb-database.labels" . | indent 4 }} @@ -42,6 +42,7 @@ spec: versionServiceEndpoint: {{ .Values.upgradeOptions.versionServiceEndpoint }} apply: {{ .Values.upgradeOptions.apply }} schedule: {{ .Values.upgradeOptions.schedule }} + setFCV: {{ .Values.upgradeOptions.setFCV }} {{- end }} pmm: enabled: {{ .Values.pmm.enabled }} @@ -277,5 +278,11 @@ spec: {{- end }} storages: {{ .Values.backup.storages | toYaml | indent 6 }} + pitr: + {{- if and .Values.backup.enabled .Values.backup.pitr.enabled }} + enabled: true + {{- else }} + enabled: false + {{- end }} tasks: {{ .Values.backup.tasks | toYaml | indent 6 }} diff --git a/charts/psmdb-db/values.yaml b/charts/psmdb-db/values.yaml index 03834506..3f5d8ced 100644 --- a/charts/psmdb-db/values.yaml +++ b/charts/psmdb-db/values.yaml @@ -17,12 +17,13 @@ allowUnsafeConfigurations: false updateStrategy: SmartUpdate upgradeOptions: versionServiceEndpoint: https://check.percona.com - apply: recommended + apply: 4.4-recommended schedule: "0 2 * * *" + setFCV: false image: repository: percona/percona-server-mongodb - tag: 4.4.3-5 + tag: 4.4.5-7 # imagePullSecrets: [] # runUid: 1001 @@ -127,7 +128,7 @@ sharding: storage: 3Gi mongos: - size: 1 + size: 2 antiAffinityTopologyKey: "kubernetes.io/hostname" # priorityClass: "" # annotations: {} @@ -164,7 +165,7 @@ backup: restartOnFailure: true image: repository: percona/percona-server-mongodb-operator - tag: 1.7.0-backup + tag: 1.8.0-backup serviceAccountName: percona-server-mongodb-operator # resources: # limits: @@ -187,6 +188,8 @@ backup: # region: us-east-1 # credentialsSecret: my-cluster-name-backup-minio # endpointUrl: http://minio.psmdb.svc.cluster.local:9000/minio/ + pitr: + enabled: false tasks: # - name: daily-s3-us-west # enabled: true diff --git a/charts/psmdb-operator/Chart.yaml b/charts/psmdb-operator/Chart.yaml index 39a4a151..d0806429 100644 --- a/charts/psmdb-operator/Chart.yaml +++ b/charts/psmdb-operator/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v1 -appVersion: "1.7.0" +appVersion: "1.8.0" description: A Helm chart for Deploying the Percona Kubernetes Operator for Percona Server for MongoDB name: psmdb-operator home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/kubernetes.html -version: 1.7.0 +version: 1.8.0 maintainers: - name: cap1984 email: ivan.pylypenko@percona.com diff --git a/charts/psmdb-operator/README.md b/charts/psmdb-operator/README.md index 39790b60..97726d10 100644 --- a/charts/psmdb-operator/README.md +++ b/charts/psmdb-operator/README.md @@ -4,7 +4,7 @@ This chart implements Percona Server MongoDB operator deployment. The Operator i * ## Pre-requisites -* Kubernetes 1.15+ +* Kubernetes 1.16+ * PV support on the underlying infrastructure - only if you are provisioning persistent volume(s). * At least `v2.5.0` version of helm @@ -20,7 +20,7 @@ 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.7.0 --namespace my-namespace +helm install my-operator percona/psmdb-operator --version 1.8.0 --namespace my-namespace ``` The chart can be customized using the following configurable parameters: @@ -28,7 +28,7 @@ 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.7.0` | +| `image.tag` | PSMDB Operator Container image tag | `1.8.0` | | `image.pullPolicy` | PSMDB Operator Container pull policy | `Always` | | `image.pullSecrets` | PSMDB Operator Pod pull secret | `[]` | | `replicaCount` | PSMDB Operator Pod quantity | `1` | diff --git a/charts/psmdb-operator/crds/crd.yaml b/charts/psmdb-operator/crds/crd.yaml index 10c01864..3744fc1c 100644 --- a/charts/psmdb-operator/crds/crd.yaml +++ b/charts/psmdb-operator/crds/crd.yaml @@ -35,6 +35,9 @@ spec: storage: false served: true - name: v1-7-0 + storage: false + served: true + - name: v1-8-0 storage: true served: true - name: v1alpha1 diff --git a/charts/psmdb-operator/values.yaml b/charts/psmdb-operator/values.yaml index 009d328a..45dbc7c1 100644 --- a/charts/psmdb-operator/values.yaml +++ b/charts/psmdb-operator/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: percona/percona-server-mongodb-operator - tag: 1.7.0 + tag: 1.8.0 pullPolicy: IfNotPresent # set if you want to specify a namespace to watch