Skip to content

Commit

Permalink
Merge pull request #72 from percona/psmdb-180
Browse files Browse the repository at this point in the history
K8SPSMDB-442 - Update for PSMDBO 1.8.0 release
  • Loading branch information
tplavcic authored May 19, 2021
2 parents 2346485 + e778966 commit 4aedd35
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 21 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: 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
Expand Down
12 changes: 7 additions & 5 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand All @@ -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 | `{}` |
Expand Down Expand Up @@ -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 | `{}` |

Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-db/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions charts/psmdb-db/production-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
11 changes: 7 additions & 4 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -127,7 +128,7 @@ sharding:
storage: 3Gi

mongos:
size: 1
size: 2
antiAffinityTopologyKey: "kubernetes.io/hostname"
# priorityClass: ""
# annotations: {}
Expand Down Expand Up @@ -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:
Expand All @@ -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
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: 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
Expand Down
6 changes: 3 additions & 3 deletions charts/psmdb-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This chart implements Percona Server MongoDB operator deployment. The Operator i
* <https://github.com/percona/percona-server-mongodb-operator>

## 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

Expand All @@ -20,15 +20,15 @@ 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:

| 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` |
Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-operator/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/psmdb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aedd35

Please sign in to comment.