Skip to content
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

Polish documents #213

Merged
merged 7 commits into from
Dec 26, 2018
Merged

Polish documents #213

merged 7 commits into from
Dec 26, 2018

Conversation

tennix
Copy link
Member

@tennix tennix commented Dec 5, 2018

This PR polishes the documents:

  • Add operator itself management
  • Destroy TiDB cluster before destroying GKE cluster in GKE tutorial
  • Document about TiDB cluster vertical scaling and minor/major version upgrading.

@tennix tennix requested a review from gregwebs December 5, 2018 11:16
@gregwebs
Copy link
Contributor

gregwebs commented Dec 6, 2018

Lgtm

When the TiDB cluster is not needed, you can delete with the following command:

helm delete tidb --purge &&
kubectl delete
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the kubectl delete mean?

When the TiDB cluster is not needed, you can delete with the following command:

helm delete tidb --purge &&
kubectl delete
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the kubectl delete mean?

When the TiDB cluster is not needed, you can delete with the following command:

helm delete tidb --purge &&
kubectl delete
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this line means?

@@ -154,6 +154,18 @@ Now the number of TiKV pods is increased from the default 3 to 5. You can check

kubectl get po -n tidb

## Destroy the TiDB cluster

When the TiDB cluster is not needed, you can delete with the following command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When the TiDB cluster is not needed, you can delete with the following command:
When the TiDB cluster is not needed, you can delete it with the following commands:

helm delete tidb --purge &&
kubectl delete

The above commands only delete the running pods, the data is persistent. If you do not need the data anymore, you should run the following command to clean the data and the dynamically created persistent disks:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The above commands only delete the running pods, the data is persistent. If you do not need the data anymore, you should run the following command to clean the data and the dynamically created persistent disks:
The above commands only delete the running pods, the data is persistent. If you do not need the data anymore, you should run the following commands to clean the data and the dynamically created persistent disks:


The above commands only delete the running pods, the data is persistent. If you do not need the data anymore, you should run the following command to clean the data and the dynamically created persistent disks:

kubectl delete pvc -n tidb -l app.kubernetes.io/instance=tidb,app.kubernetes.io/managed-by=tidb-operator &&
Copy link
Contributor

@weekface weekface Dec 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a dangerous operation, give user a warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's just a tutorial, and the statement above the command already said it will clean the data and persistent disks. So not a big problem I think.

weekface
weekface previously approved these changes Dec 6, 2018
Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

xiaojingchen
xiaojingchen previously approved these changes Dec 6, 2018
Copy link
Contributor

@xiaojingchen xiaojingchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tennix tennix dismissed stale reviews from xiaojingchen and weekface via a1b52f6 December 10, 2018 11:10
@tennix tennix merged commit 649d273 into pingcap:master Dec 26, 2018
@tennix tennix deleted the polish-user-guide branch December 26, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants