Skip to content

K8SPSMDB-1265 - Update PSMDB operator chart for 1.20.0 release #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.19.1"
appVersion: "1.20.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.19.1
version: 1.20.0
maintainers:
- name: nmarukovich
email: [email protected]
Expand Down
8 changes: 6 additions & 2 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ 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.19.1 --namespace my-namespace
helm install my-db percona/psmdb-db --version 1.20.0 --namespace my-namespace
```

The chart can be customized using the following configurable parameters:

| Parameter | Description | Default |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| `crVersion` | CR Cluster Manifest version | `1.19.1` |
| `crVersion` | CR Cluster Manifest version | `1.20.0` |
| `pause` | Stop PSMDB Database safely | `false` |
| `unmanaged` | Start cluster and don't manage it (cross cluster replication) | `false` |
| `enableVolumeExpansion` | Allows to resize `PersistentVolumeClaim`s by changing `.volumeSpec.persistentVolumeClaim.resources` field | `false` |
Expand Down Expand Up @@ -86,6 +86,7 @@ The chart can be customized using the following configurable parameters:
| `pmm.resources` | Set resources for PMM container | `{}` |
| `pmm.mongodParams` | PMM mongod params | `""` |
| `pmm.mongosParams` | PMM mongos params | `""` |
| `pmm.customClusterName` | PMM cluster name. If not set Operator uses cr.Name for PMM cluster name. | `""` |
| |
| `replsets.rs0.name` | ReplicaSet name | `rs0` |
| `replsets.rs0.size` | ReplicaSet size (pod quantity) | `3` |
Expand Down Expand Up @@ -120,6 +121,7 @@ The chart can be customized using the following configurable parameters:
| `replsets.rs0.splitHorizons` | External URI for Split-horizon for replica set Pods of the exposed cluster | `{}` |
| `replsets.rs0.expose.enabled` | Allow access to replicaSet from outside of Kubernetes | `false` |
| `replsets.rs0.expose.type` | Network service access point type | `ClusterIP` |
| `replsets.rs0.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `replsets.rs0.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `replsets.rs0.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
| `replsets.rs0.expose.annotations` | ReplicaSet service annotations | `{}` |
Expand Down Expand Up @@ -212,6 +214,7 @@ The chart can be customized using the following configurable parameters:
| `sharding.configrs.podDisruptionBudget.maxUnavailable` | Config ReplicaSet failed Pods maximum quantity | `1` |
| `sharding.configrs.expose.enabled` | Allow access to cfg replica from outside of Kubernetes | `false` |
| `sharding.configrs.expose.type` | Network service access point type | `ClusterIP` |
| `sharding.configrs.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `sharding.configrs.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `sharding.configrs.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
| `sharding.configrs.expose.annotations` | Config ReplicaSet service annotations | `{}` |
Expand Down Expand Up @@ -259,6 +262,7 @@ The chart can be customized using the following configurable parameters:
| `sharding.mongos.resources.requests.cpu` | Mongos Pods resource requests CPU | `300m` |
| `sharding.mongos.resources.requests.memory` | Mongos Pods resource requests memory | `0.5G` |
| `sharding.mongos.expose.type` | Mongos service type | `ClusterIP` |
| `sharding.mongos.expose.loadBalancerClass` | Class of the load balancer implementation the Service belongs to | `""` |
| `sharding.mongos.expose.loadBalancerIP` | Set client IP to Load Balancer | `""` |
| `sharding.mongos.expose.servicePerPod` | Create a separate ClusterIP Service for each mongos instance | `false` |
| `sharding.mongos.expose.loadBalancerSourceRanges` | Limit client IP's access to Load Balancer | `{}` |
Expand Down
12 changes: 12 additions & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ spec:
containerSecurityContext:
{{ .Values.pmm.containerSecurityContext | toYaml | indent 6 }}
{{- end }}
{{- if .Values.pmm.customClusterName }}
customClusterName: {{ .Values.pmm.customClusterName }}
{{- end }}

replsets:
{{- range $k,$replset := .Values.replsets }}
Expand Down Expand Up @@ -201,6 +204,9 @@ spec:
expose:
enabled: {{ $replset.expose.enabled }}
type: {{ $replset.expose.type }}
{{- if $replset.expose.loadBalancerClass }}
loadBalancerClass: {{ $replset.expose.loadBalancerClass }}
{{- end }}
{{- if $replset.expose.loadBalancerIP }}
loadBalancerIP: {{ $replset.expose.loadBalancerIP }}
{{- end }}
Expand Down Expand Up @@ -449,6 +455,9 @@ spec:
expose:
enabled: {{ .Values.sharding.configrs.expose.enabled }}
type: {{ .Values.sharding.configrs.expose.type }}
{{- if .Values.sharding.configrs.expose.loadBalancerClass }}
loadBalancerClass: {{ .Values.sharding.configrs.expose.loadBalancerClass }}
{{- end }}
{{- if .Values.sharding.configrs.expose.loadBalancerIP }}
loadBalancerIP: {{ .Values.sharding.configrs.expose.loadBalancerIP }}
{{- end }}
Expand Down Expand Up @@ -583,6 +592,9 @@ spec:
memory: {{ .Values.sharding.mongos.resources.requests.memory }}
expose:
type: {{ .Values.sharding.mongos.expose.type }}
{{- if .Values.sharding.mongos.expose.loadBalancerClass }}
loadBalancerClass: {{ .Values.sharding.mongos.expose.loadBalancerClass }}
{{- end }}
{{- if .Values.sharding.mongos.expose.loadBalancerIP }}
loadBalancerIP: {{ .Values.sharding.mongos.expose.loadBalancerIP }}
{{- end }}
Expand Down
17 changes: 11 additions & 6 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ finalizers:
nameOverride: ""
fullnameOverride: ""

crVersion: 1.19.1
crVersion: 1.20.0
pause: false
unmanaged: false
unsafeFlags:
Expand Down Expand Up @@ -56,7 +56,7 @@ imagePullPolicy: Always
# imagePullSecrets: []
# initImage:
# repository: percona/percona-server-mongodb-operator
# tag: 1.19.1
# tag: 1.20.0
# initContainerSecurityContext: {}
# tls:
# mode: preferTLS
Expand Down Expand Up @@ -85,10 +85,11 @@ pmm:
repository: percona/pmm-client
tag: 2.44.0
serverHost: monitoring-service
# mongodParams: ""
# mongosParams: ""
# resources: {}
# containerSecurityContext: {}
# customClusterName: ""
# mongodParams: ""
# mongosParams: ""
# resources: {}
# containerSecurityContext: {}

replsets:
rs0:
Expand Down Expand Up @@ -228,6 +229,7 @@ replsets:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down Expand Up @@ -404,6 +406,7 @@ sharding:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down Expand Up @@ -499,6 +502,7 @@ sharding:
expose:
enabled: false
type: ClusterIP
# loadBalancerClass: ""
# loadBalancerIP: 10.0.0.0/8
# loadBalancerSourceRanges:
# - 10.0.0.0/8
Expand Down Expand Up @@ -591,6 +595,7 @@ backup:
# memory: "1G"
storages:
# s3-us-west:
# main: true
# type: s3
# s3:
# bucket: S3-BACKUP-BUCKET-NAME-HERE
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.19.1"
appVersion: "1.20.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.19.1
version: 1.20.0
maintainers:
- name: nmarukovich
email: [email protected]
Expand Down
4 changes: 2 additions & 2 deletions charts/psmdb-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,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.19.1 --namespace my-namespace
helm install my-operator percona/psmdb-operator --version 1.20.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.19.1` |
| `image.tag` | PSMDB Operator Container image tag | `1.20.0` |
| `image.pullPolicy` | PSMDB Operator Container pull policy | `Always` |
| `image.pullSecrets` | PSMDB Operator Pod pull secret | `[]` |
| `replicaCount` | PSMDB Operator Pod quantity | `1` |
Expand Down
Loading
Loading