Skip to content

Commit

Permalink
cherry pick #930 to release-1.1 (#938)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: Yilong Li <[email protected]>
  • Loading branch information
ti-srebot and dragonly authored Dec 21, 2020
1 parent ab0a83e commit 8fe065e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions en/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
- [Log Collection](logs-collection.md)
+ Release Notes
+ v1.1
- [1.1.8](releases/release-1.1.8.md)
- [1.1.7](releases/release-1.1.7.md)
- [1.1.6](releases/release-1.1.6.md)
- [1.1.5](releases/release-1.1.5.md)
Expand Down
32 changes: 32 additions & 0 deletions en/releases/release-1.1.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: TiDB Operator 1.1.8 Release Notes
---

# TiDB Operator 1.1.8 Release Notes

Release date: December 21, 2020

TiDB Operator version: 1.1.8

## New Features

- Support arbitrary Volume and VolumeMount for `PD`, `TiDB`, `TiKV`, `TiFlash`, `Backup` and `Restore`, which enables using NFS or any other kubernetes supported volume source for backup/restore workflow ([#3517](https://github.com/pingcap/tidb-operator/pull/3517), [@dragonly](https://github.com/dragonly))

## Improvements

- Support cluster and client TLS for `tidb-lightning` and `tikv-importer` helm charts ([#3598](https://github.com/pingcap/tidb-operator/pull/3598), [@csuzhangxc](https://github.com/csuzhangxc))
- Support setting additional ports for the TiDB service. Users can utilize this feature to implement customized services, e.g. additional health check ([#3599](https://github.com/pingcap/tidb-operator/pull/3599), [@handlerww](https://github.com/handlerww))
- Support skipping TLS when connecting `TidbInitializer` to TiDB Server ([#3564](https://github.com/pingcap/tidb-operator/pull/3564), [@LinuxGit](https://github.com/LinuxGit))
- Support tableFilters for restoring data using TiDB Lightning ([#3521](https://github.com/pingcap/tidb-operator/pull/3521), [@sstubbs](https://github.com/sstubbs))
- Support Prometheus to scrape metrics data from multiple TiDB clusters ([#3622](https://github.com/pingcap/tidb-operator/pull/3622), [@mikechengwei](https://github.com/mikechengwei))

ACTION REQUIRED: If `TidbMonitor` CRs are deployed, update the `spec.initializer.version` to `v4.0.9` after upgrading TiDB Operator to v1.1.8, or some metrics will not be shown correctly in the Grafana dashboards. Prometheus crape job names are changed from `${component}` to `${namespace}-${TidbCluster Name}-${component}`.
- `component` label is added to the scrape jobs of Prometheus in `TidbMonitor` ([#3609](https://github.com/pingcap/tidb-operator/pull/3609), [@mikechengwei](https://github.com/mikechengwei))

## Bug Fixes

- Fix the issue that TiDB cluster fails to deploy if `spec.tikv.storageVolumes` is configured ([#3586](https://github.com/pingcap/tidb-operator/pull/3586), [@mikechengwei](https://github.com/mikechengwei))
- Fix codecs error for non-ASCII character password in the `TidbInitializer` job ([#3569](https://github.com/pingcap/tidb-operator/pull/3569), [@handlerww](https://github.com/handlerww))
- Fix the issue that TiFlash Pods are misrecognized as TiKV Pods. The original issue can potentially cause TiDB Operator to scale in TiKV Pods to a number smaller than `tikv.replicas`, when there are TiFlash Pods in the `TidbCluster` ([#3514](https://github.com/pingcap/tidb-operator/pull/3514), [@handlerww](https://github.com/handlerww))
- Fix the issue that deploying `Backup` CR without `spec.from` configured will crash `tidb-controller-manager` Pod when TLS is enabled for TiDB client ([#3535](https://github.com/pingcap/tidb-operator/pull/3535), [@dragonly](https://github.com/dragonly))
- Fix the issue that TiDB Lightning doesn't log to stdout ([#3617](https://github.com/pingcap/tidb-operator/pull/3617), [@csuzhangxc](https://github.com/csuzhangxc))
1 change: 1 addition & 0 deletions zh/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
- [日志收集](logs-collection.md)
+ 版本发布历史
+ v1.1
- [1.1.8](releases/release-1.1.8.md)
- [1.1.7](releases/release-1.1.7.md)
- [1.1.6](releases/release-1.1.6.md)
- [1.1.5](releases/release-1.1.5.md)
Expand Down
32 changes: 32 additions & 0 deletions zh/releases/release-1.1.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: TiDB Operator 1.1.8 Release Notes
---

# TiDB Operator 1.1.8 Release Notes

发布日期:2020 年 12 月 21 日

TiDB Operator 版本:1.1.8

## 新功能

- 支持为 `PD``TiDB``TiKV``TiFlash``Backup``Restore` 指定任意 Volume 和 VolumeMount,用户可以利用该功能实现基于 NFS 或者任意 Kubernetes 支持的 Volume 类型的备份和恢复任务。([#3517](https://github.com/pingcap/tidb-operator/pull/3517), [@dragonly](https://github.com/dragonly))

## 优化提升

- 支持在 `tidb-lightning``tikv-importer` helm charts 中为 TiDB 组件和客户端开启 TLS 的功能。([#3598](https://github.com/pingcap/tidb-operator/pull/3598), [@csuzhangxc](https://github.com/csuzhangxc))
- 支持为 TiDB service 指定额外的端口。用户可以利用该功能实现自定义服务,如额外的健康检查机制。([#3599](https://github.com/pingcap/tidb-operator/pull/3599), [@handlerww](https://github.com/handlerww))
- 支持在 `TidbInitializer` 连接 TiDB server 时不使用 TLS。([#3564](https://github.com/pingcap/tidb-operator/pull/3564), [@LinuxGit](https://github.com/LinuxGit))
- 支持 TiDB Lightning 恢复数据时使用 tableFilters 进行过滤。([#3521](https://github.com/pingcap/tidb-operator/pull/3521), [@sstubbs](https://github.com/sstubbs))
- 支持 Prometheus 从多个 TiDB cluster 抓取 metrics 数据。([#3622](https://github.com/pingcap/tidb-operator/pull/3622), [@mikechengwei](https://github.com/mikechengwei))

需要手动操作:如果已经部署了 `TidbMonitor` CR,在升级到 TiDB Operator v1.1.8 之后,需要升级 `spec.initializer.version` 字段到 `v4.0.9`,否则有的 metric 在 Grafana 面板上将不会正确显示。Prometheus 抓取 job 名字从 `${component}` 改成了 `${namespace}-${TidbCluster Name}-${component}`
- `TidbMonitor` 中的 Prometheus job 新增了 `component` label。([#3609](https://github.com/pingcap/tidb-operator/pull/3609), [@mikechengwei](https://github.com/mikechengwei))

## Bug 修复

- 修复当配置了 `spec.tikv.storageVolumes` 时,无法部署 TiDB 集群的问题。([#3586](https://github.com/pingcap/tidb-operator/pull/3586), [@mikechengwei](https://github.com/mikechengwei))
- 修复在 `TidbInitializer` 任务中使用包含非 ASCII 字符密码时的编码错误。([#3569](https://github.com/pingcap/tidb-operator/pull/3569), [@handlerww](https://github.com/handlerww))
- 修复 TiFlash Pods 会被误认为 TiKV Pods 的问题。该问题会导致当同一个 `TidbCluster` 中部署了 TiFlash 实例时,TiDB Operator 可能将 TiKV 实例缩容到小于 `tikv.replicas` 的数字。([#3514](https://github.com/pingcap/tidb-operator/pull/3514), [@handlerww](https://github.com/handlerww))
- 修复在开启 TiDB 客户端 TLS 功能的情况下,如果不配置 `spec.from`,部署 `Backup` CR 会导致 `tidb-controller-manager` Pod 崩溃的问题。([#3535](https://github.com/pingcap/tidb-operator/pull/3535), [@dragonly](https://github.com/dragonly))
- 修复了 TiDB Lightning 不打印日志到 stdout 的问题。([#3617](https://github.com/pingcap/tidb-operator/pull/3617), [@csuzhangxc](https://github.com/csuzhangxc))

0 comments on commit 8fe065e

Please sign in to comment.