Skip to content

Commit

Permalink
Deprecate mysqld in vitess/lite and use mysql:8.0.30 image for …
Browse files Browse the repository at this point in the history
…the operator (#14990)

Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui authored Jan 19, 2024
1 parent 22809e4 commit 19a0242
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 76 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,6 @@ $(DOCKER_BASE_TARGETS): docker_base_%:

docker_base_all: docker_base $(DOCKER_BASE_TARGETS)

DOCKER_MYSQL_VERSIONS = 8.0.30 8.0.34
docker_mysql:
for i in $(DOCKER_MYSQL_VERSIONS); do echo "building vitess/mysql:$$i"; ${call build_docker_image,docker/mysql/Dockerfile.$$i,vitess/mysql:$$i} || exit 1; done

docker_mysql_push:
for i in $(DOCKER_MYSQL_VERSIONS); do echo "pushing vitess/mysql:$$i"; docker push vitess/mysql:$$i || exit 1; done

docker_lite:
${call build_docker_image,docker/lite/Dockerfile,vitess/lite}

Expand Down
23 changes: 15 additions & 8 deletions changelog/19.0/19.0.0/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
- **[Dropping Support for MySQL 5.7](#drop-support-mysql57)**
- **[Deprecations and Deletions](#deprecations-and-deletions)**
- [VTTablet Flags](#vttablet-flags)
- **[Docker](#docker)**
- [New MySQL Image](#mysql-image)
- [MySQL binary in vitess/lite Docker image](#mysql-binary-in-lite-image)
- **[New Stats](#new-stats)**
- [Stream Consolidations](#stream-consolidations)
- [Build Version in `/debug/vars`](#build-version-in-debug-vars)
Expand Down Expand Up @@ -44,16 +43,24 @@ Vitess will however, continue to support importing from MySQL 5.7 into Vitess ev
`--vreplication_healthcheck_topology_refresh`, `--vreplication_healthcheck_retry_delay`, and `--vreplication_healthcheck_timeout`.
- The `--vreplication_tablet_type` flag is now deprecated and ignored.

#### <a id="mysql-binary-in-lite-image"/>MySQL binary in vitess/lite Docker image

### <a id="docker"/>Docker
The `mysqld` binary is now deprecated in the `vitess/lite` Docker image and will be removed in a future release.

#### <a id="mysql-image"/>New MySQL Image
If you are currently using `vitess/lite` as your `mysqld` image in your vitess-operator deployment we invite you to use an official MySQL image such as `mysql:8.0.30`.

In `v19.0` the Vitess team is shipping a new image: `vitess/mysql`.
This lightweight image is a replacement of `vitess/lite` to only run `mysqld`.

Several tags are available to let you choose what version of MySQL you want to use: `vitess/mysql:8.0.30`, `vitess/mysql:8.0.34`.
Below is an example of a kubernetes yaml file before and after upgrading to an official MySQL image:

```yaml
# before
mysqld:
mysql80Compatible: vitess/lite:19.0.0
```
```yaml
# after
mysqld:
mysql80Compatible: mysql:8.0.30 # or even mysql:8.0.34 for instance
```
### <a id="new-stats"/>New Stats
Expand Down
1 change: 0 additions & 1 deletion docker/mysql/Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions docker/mysql/Dockerfile.8.0.30

This file was deleted.

28 changes: 0 additions & 28 deletions docker/mysql/Dockerfile.8.0.34

This file was deleted.

2 changes: 1 addition & 1 deletion examples/operator/101_initial_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: vitess/lite:latest
mysql80Compatible: mysql:8.0.30
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
2 changes: 1 addition & 1 deletion examples/operator/201_customer_tablets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: vitess/lite:latest
mysql80Compatible: mysql:8.0.30
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
2 changes: 1 addition & 1 deletion examples/operator/302_new_shards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: vitess/lite:latest
mysql80Compatible: mysql:8.0.30
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
2 changes: 1 addition & 1 deletion examples/operator/306_down_shard_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: vitess/lite:latest
mysql80Compatible: mysql:8.0.30
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down

0 comments on commit 19a0242

Please sign in to comment.