diff --git a/CHANGELOG.md b/CHANGELOG.md index b3bfe25046c..bd0e91aa06e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,59 @@ +# TiDB Operator v1.0.2 Release Notes + +## v1.0.2 What's New + +### Action Required + +The AWS Terraform script uses auto-scaling-group for all components (PD/TiKV/TiDB/monitor). When an ec2 instance fails the health check, the instance will be replaced. This is helpful for those applications that are stateless or use EBS volumes to store data. + +But a TiKV Pod uses instance store to store its data. When an instance is replaced, all the data on its store will be lost. TiKV has to resync all data to the newly added instance. Though TiDB is a distributed database and can work when a node fails, resyncing data can cost much if the dataset is large. Besides, the ec2 instance may be recovered to a healthy state by rebooting. + +So we disabled the auto-scaling-group's replacing behavior in `v1.0.2`. + +Auto-scaling-group scaling process can also be suspended according to its [documentation](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) if you are using `v1.0.1` or prior versions. + +### Improvements + +- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group +- Add a new VM manager `qm` in stability test +- Add `tikv.maxFailoverCount` limit to TiKV +- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun +- Add provider and module versions for AWS + +### Bug fixes + +- Fix the issue that tkctl version does not work when the release name is un-wanted +- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions +- Fix the issue that the `create_tidb_cluster_release` variable in AWS Terraform script does not work +- Fix compatibility issues by adding `v1beta1` to statefulset apiVersions +- Fix the issue that TiDB Loadbalancer is empty in Terraform output +- Fix a compatibility issue of TiKV `maxFailoverCount` +- Fix Terraform providers version constraint issues for GCP and Aliyun +- Fix values file customization for tidb-operator on Aliyun +- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly +- Fix drainer misconfiguration + +## Detailed Bug Fixes and Changes + +- Fix the issue that tkctl version does not work when the release name is un-wanted ([#1065](https://github.com/pingcap/tidb-operator/pull/1065)) +- Fix the issue that the `create_tidb_cluster_release` variable in AWS terraform script does not work ([#1062](https://github.com/pingcap/tidb-operator/pull/1062)) +- Fix compatibility issues for ([#1012](https://github.com/pingcap/tidb-operator/pull/1012)): add `v1beta1` to statefulset apiVersions ([#1054](https://github.com/pingcap/tidb-operator/pull/1054)) +- Enable ConfigMapRollout by default in stability test ([#1036](https://github.com/pingcap/tidb-operator/pull/1036)) +- Fix the issue that TiDB Loadbalancer is empty in Terraform output ([#1045](https://github.com/pingcap/tidb-operator/pull/1045)) +- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions ([#1012](https://github.com/pingcap/tidb-operator/pull/1012)) +- Only expect TiDB cluster upgrade to be complete when rolling back wrong configuration in stability test ([#1030](https://github.com/pingcap/tidb-operator/pull/1030)) +- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group ([#1014](https://github.com/pingcap/tidb-operator/pull/1014)) +- Add a new VM manager `qm` in stability test ([#896](https://github.com/pingcap/tidb-operator/pull/896)) +- Fix provider versions constraint issues for GCP and Aliyun ([#959](https://github.com/pingcap/tidb-operator/pull/959)) +- Fix values file customization for tidb-operator on Aliyun ([#971](https://github.com/pingcap/tidb-operator/pull/971)) +- Fix a compatibility issue of TiKV `tikv.maxFailoverCount` ([#977](https://github.com/pingcap/tidb-operator/pull/977)) +- Add `tikv.maxFailoverCount` limit to TiKV ([#965](https://github.com/pingcap/tidb-operator/pull/965)) +- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly ([#912](https://github.com/pingcap/tidb-operator/pull/912)) +- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun ([#947](https://github.com/pingcap/tidb-operator/pull/947)) +- Add note about setting PV reclaim policy to retain ([#911](https://github.com/pingcap/tidb-operator/pull/911)) +- Fix drainer misconfiguration ([#939](https://github.com/pingcap/tidb-operator/pull/939)) +- Add provider and module versions for AWS ([#926](https://github.com/pingcap/tidb-operator/pull/926)) + # TiDB Operator v1.0.1 Release Notes ## v1.0.1 What's New diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index 31064d2f041..227ff7a74d1 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -32,7 +32,7 @@ services: type: ClusterIP discovery: - image: pingcap/tidb-operator:v1.0.1 + image: pingcap/tidb-operator:v1.0.2 imagePullPolicy: IfNotPresent resources: limits: diff --git a/charts/tidb-operator/values.yaml b/charts/tidb-operator/values.yaml index a2fe65f9466..8871ab06230 100644 --- a/charts/tidb-operator/values.yaml +++ b/charts/tidb-operator/values.yaml @@ -9,7 +9,7 @@ rbac: create: true # operatorImage is TiDB Operator image -operatorImage: pingcap/tidb-operator:v1.0.1 +operatorImage: pingcap/tidb-operator:v1.0.2 imagePullPolicy: IfNotPresent defaultStorageClassName: local-storage diff --git a/deploy/aliyun/variables.tf b/deploy/aliyun/variables.tf index 55b208cd57f..79381ff4200 100644 --- a/deploy/aliyun/variables.tf +++ b/deploy/aliyun/variables.tf @@ -10,7 +10,7 @@ variable "bastion_cpu_core_count" { variable "operator_version" { type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { @@ -40,7 +40,7 @@ variable "tidb_version" { } variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "pd_count" { diff --git a/deploy/aws/variables.tf b/deploy/aws/variables.tf index 48f2f4a0496..34b51da130d 100644 --- a/deploy/aws/variables.tf +++ b/deploy/aws/variables.tf @@ -19,7 +19,7 @@ variable "eks_version" { variable "operator_version" { description = "TiDB operator version" - default = "v1.0.1" + default = "v1.0.2" } variable "operator_values" { diff --git a/deploy/gcp/variables.tf b/deploy/gcp/variables.tf index 091b289227d..7254a674240 100644 --- a/deploy/gcp/variables.tf +++ b/deploy/gcp/variables.tf @@ -16,7 +16,7 @@ variable "tidb_version" { } variable "tidb_operator_version" { - default = "v1.0.1" + default = "v1.0.2" } variable "tidb_operator_chart_version" { diff --git a/deploy/modules/aliyun/tidb-cluster/variable.tf b/deploy/modules/aliyun/tidb-cluster/variable.tf index e0a050b989d..568f9c4f9f9 100644 --- a/deploy/modules/aliyun/tidb-cluster/variable.tf +++ b/deploy/modules/aliyun/tidb-cluster/variable.tf @@ -17,7 +17,7 @@ variable "tidb_version" { variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "pd_count" { diff --git a/deploy/modules/aliyun/tidb-operator/variables.tf b/deploy/modules/aliyun/tidb-operator/variables.tf index 0fe55ba8d68..a9ca422d5a9 100644 --- a/deploy/modules/aliyun/tidb-operator/variables.tf +++ b/deploy/modules/aliyun/tidb-operator/variables.tf @@ -22,7 +22,7 @@ variable "cluster_network_type" { variable "operator_version" { type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/aws/tidb-cluster/variables.tf b/deploy/modules/aws/tidb-cluster/variables.tf index 362c9699c4a..95f53c9218c 100644 --- a/deploy/modules/aws/tidb-cluster/variables.tf +++ b/deploy/modules/aws/tidb-cluster/variables.tf @@ -1,6 +1,6 @@ variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "create_tidb_cluster_release" { diff --git a/deploy/modules/aws/tidb-operator/variables.tf b/deploy/modules/aws/tidb-operator/variables.tf index 90be47d7535..9cbad48fcd3 100644 --- a/deploy/modules/aws/tidb-operator/variables.tf +++ b/deploy/modules/aws/tidb-operator/variables.tf @@ -12,7 +12,7 @@ variable "eks_version" { variable "operator_version" { description = "TiDB Operator version" type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/gcp/tidb-cluster/variables.tf b/deploy/modules/gcp/tidb-cluster/variables.tf index 0821849b159..08a74c0f6fb 100644 --- a/deploy/modules/gcp/tidb-cluster/variables.tf +++ b/deploy/modules/gcp/tidb-cluster/variables.tf @@ -5,7 +5,7 @@ variable "cluster_version" { } variable "tidb_cluster_chart_version" { description = "The TiDB cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "override_values" { description = "YAML formatted values that will be passed in to the tidb-cluster helm release" diff --git a/deploy/modules/gcp/tidb-operator/variables.tf b/deploy/modules/gcp/tidb-operator/variables.tf index 2ac9c0b6c18..c3a2660e362 100644 --- a/deploy/modules/gcp/tidb-operator/variables.tf +++ b/deploy/modules/gcp/tidb-operator/variables.tf @@ -28,7 +28,7 @@ variable "gke_version" { variable "tidb_operator_version" { description = "TiDB Operator version" type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/share/tidb-cluster-release/variables.tf b/deploy/modules/share/tidb-cluster-release/variables.tf index 71fbf970e6d..213eb1ce37b 100644 --- a/deploy/modules/share/tidb-cluster-release/variables.tf +++ b/deploy/modules/share/tidb-cluster-release/variables.tf @@ -5,7 +5,7 @@ variable "kubeconfig_filename" { variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "create" { diff --git a/tests/manifests/stability/stability.yaml b/tests/manifests/stability/stability.yaml index 4f6c59981d8..a76acf6e144 100644 --- a/tests/manifests/stability/stability.yaml +++ b/tests/manifests/stability/stability.yaml @@ -47,8 +47,8 @@ spec: command: - /usr/local/bin/stability-test - --config=/etc/tidb-operator-stability/config.yaml - - --operator-image=pingcap/tidb-operator:v1.0.1 - - --operator-tag=v1.0.1 + - --operator-image=pingcap/tidb-operator:v1.0.2 + - --operator-tag=v1.0.2 - --slack-webhook-url="" volumeMounts: - mountPath: /logDir