Skip to content

Commit

Permalink
Merge pull request #346 from percona/K8SPS-343-ps-080
Browse files Browse the repository at this point in the history
K8SPS343 - Update PS operator chart for 0.8.0 release
  • Loading branch information
jvpasinatto authored Jul 16, 2024
2 parents 35473cc + 7be6067 commit b1495d5
Show file tree
Hide file tree
Showing 9 changed files with 868 additions and 227 deletions.
4 changes: 2 additions & 2 deletions charts/ps-db/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "0.7.0"
appVersion: "0.8.0"
description: A Helm chart for installing Percona Server Databases using the PS Operator.
name: ps-db
home: https://www.percona.com/doc/kubernetes-operator-for-mysql/ps
version: 0.7.0
version: 0.8.0
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
375 changes: 190 additions & 185 deletions charts/ps-db/README.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions charts/ps-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ metadata:

spec:
crVersion: {{ .Chart.AppVersion }}
{{- if .Values.allowUnsafeConfigurations }}
allowUnsafeConfigurations: {{ .Values.allowUnsafeConfigurations }}
{{- if .Values.unsafeFlags }}
unsafeFlags:
{{ .Values.unsafeFlags | toYaml | indent 4 }}
{{- end }}
{{- if .Values.initImage }}
initImage: {{ .Values.initImage }}
Expand Down
39 changes: 24 additions & 15 deletions charts/ps-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ nameOverride: ""
fullnameOverride: ""

finalizers:
- delete-mysql-pods-in-order
# - delete-ssl

crVersion: 0.7.0
- percona.com/delete-mysql-pods-in-order
# - percona.com/delete-ssl

# unsafeFlags:
# mysqlSize: false
# orchestrator: false
# orchestratorSize: false
# proxy: false
# proxySize: false
crVersion: 0.8.0
pause: false
allowUnsafeConfigurations: false
# initImage: percona/percona-server-mysql-operator:0.7.0
# initImage: percona/percona-server-mysql-operator:0.8.0

updateStrategy: SmartUpdate
upgradeOptions:
Expand Down Expand Up @@ -46,7 +51,7 @@ mysql:
imagePullPolicy: Always
imagePullSecrets: []
# - name: private-registry-credentials
# initImage: percona/percona-server-mysql-operator:0.7.0
# initImage: percona/percona-server-mysql-operator:0.8.0

size: 3

Expand Down Expand Up @@ -99,6 +104,7 @@ mysql:
type: ClusterIP
# annotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
# externalTrafficPolicy: Cluster
# internalTrafficPolicy: Cluster
# labels:
Expand Down Expand Up @@ -171,7 +177,7 @@ proxy:
tag: 2.8.5
imagePullPolicy: Always
imagePullSecrets: []
# initImage: percona/percona-server-mysql-operator:0.7.0
# initImage: percona/percona-server-mysql-operator:0.8.0

size: 3

Expand Down Expand Up @@ -286,6 +292,7 @@ proxy:
# type: ClusterIP
# annotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
# externalTrafficPolicy: Cluster
# internalTrafficPolicy: Cluster
# labels:
Expand All @@ -301,7 +308,7 @@ proxy:
tag: 8.0.36
imagePullPolicy: Always
imagePullSecrets: []
# initImage: percona/percona-server-mysql-operator:0.7.0
# initImage: percona/percona-server-mysql-operator:0.8.0

size: 3

Expand Down Expand Up @@ -365,6 +372,7 @@ proxy:
# type: ClusterIP
# annotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
# externalTrafficPolicy: Cluster
# internalTrafficPolicy: Cluster
# labels:
Expand All @@ -374,15 +382,15 @@ proxy:
# - 10.0.0.0/8

orchestrator:
enabled: false
enabled: true
image:
repository: percona/percona-orchestrator
tag: 3.2.6-12
imagePullPolicy: Always
imagePullSecrets: []
# - name: private-registry-credentials
# serviceAccountName: percona-server-mysql-operator-orchestrator
# initImage: percona/percona-server-mysql-operator:0.7.0
# initImage: percona/percona-server-mysql-operator:0.8.0

size: 3

Expand Down Expand Up @@ -436,6 +444,7 @@ orchestrator:
# type: ClusterIP
# annotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
# externalTrafficPolicy: Cluster
# internalTrafficPolicy: Cluster
# labels:
Expand All @@ -448,7 +457,7 @@ pmm:
enabled: false
image:
repository: percona/pmm-client
tag: 2.41.1
tag: 2.42.0
imagePullPolicy: Always
serverHost: monitoring-service
serverUser: admin
Expand All @@ -462,15 +471,15 @@ backup:
enabled: true
image:
repository: percona/percona-xtrabackup
tag: 8.0.35-30
tag: 8.0.35-31
# backoffLimit: 6
imagePullPolicy: Always
imagePullSecrets: []
resources:
requests: {}
limits: {}
# containerSecurityContext:
# privileged: false
# privileged: true
# serviceAccountName: percona-server-mysql-operator-workload
storages: {}
# s3-us-west:
Expand Down Expand Up @@ -524,7 +533,7 @@ backup:
toolkit:
image:
repository: percona/percona-toolkit
tag: 3.5.7
tag: 3.6.0
imagePullPolicy: Always
resources:
requests: {}
Expand Down
4 changes: 2 additions & 2 deletions charts/ps-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "0.7.0"
appVersion: "0.8.0"
description: A Helm chart for Deploying the Percona Operator for MySQL (based on Percona Server for MySQL)
name: ps-operator
home: https://docs.percona.com/percona-operator-for-mysql/ps/
version: 0.7.0
version: 0.8.0
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
34 changes: 17 additions & 17 deletions charts/ps-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-mysql/ps/index.html)

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

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

```sh
helm repo add percona https://percona.github.io/percona-helm-charts/
helm install my-operator percona/ps-operator --version 0.7.0 --namespace my-namespace
helm install my-operator percona/ps-operator --version 0.8.0 --namespace my-namespace
```

The chart can be customized using the following configurable parameters:

| Parameter | Description | Default |
| ------------------------------- | ------------------------------------------------------------------------------| ------------------------------------------|
| `image.repository` | PS Operator Container image name | `percona/percona-server-mysql-operator` |
| `image.tag` | PS Operator Container image tag | `0.7.0` |
| `image.pullPolicy` | PS Operator Container pull policy | `Always` |
| `image.pullSecrets` | PS Operator Pod pull secret | `[]` |
| `replicaCount` | PS Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
| `rbac.create` | If false RBAC will not be created. RBAC resources will need to be created manually | `true` |
| `serviceAccount.create` | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | `true` |
| `env.logStructured` | Enable JSON format for logs | `false` |
| `env.logLevel` | Set appropriate log level (INFO, DEBUG, ERROR) | `INFO` |
| `disableTelemetry` | Disable sending PS Operator telemetry data to Percona | `false` |
| Parameter | Description | Default |
| ----------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------- |
| `image.repository` | PS Operator Container image name | `percona/percona-server-mysql-operator` |
| `image.tag` | PS Operator Container image tag | `0.8.0` |
| `image.pullPolicy` | PS Operator Container pull policy | `Always` |
| `image.pullSecrets` | PS Operator Pod pull secret | `[]` |
| `replicaCount` | PS Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
| `rbac.create` | If false RBAC will not be created. RBAC resources will need to be created manually | `true` |
| `serviceAccount.create` | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | `true` |
| `env.logStructured` | Enable JSON format for logs | `false` |
| `env.logLevel` | Set appropriate log level (INFO, DEBUG, ERROR) | `INFO` |
| `disableTelemetry` | Disable sending PS 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 b1495d5

Please sign in to comment.