-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tidb-in-kubernetes: add permitHost document #1777
Conversation
2. 部署集群 | ||
2. 设置允许访问 TiDB 的主机 | ||
|
||
在部署集群前可以通过设置 `permitHost` 设置允许访问 TiDB 的主机 **host_name**。如果不设置,则允许所有主机访问。详情请参考 [Mysql GRANT host name](https://dev.mysql.com/doc/refman/5.7/en/grant.html)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在部署集群前可以通过设置 `permitHost` 设置允许访问 TiDB 的主机 **host_name**。如果不设置,则允许所有主机访问。详情请参考 [Mysql GRANT host name](https://dev.mysql.com/doc/refman/5.7/en/grant.html)。 | |
在部署集群前可以通过设置 `tidb.permitHost` 设置允许访问 TiDB 的主机 **host_name**。如果不设置,则允许所有主机访问。详情请参考 [Mysql GRANT host name](https://dev.mysql.com/doc/refman/5.7/en/grant.html)。 |
Please do not merge this pr before: pingcap/tidb-operator#779 |
Co-Authored-By: Keke Yi <[email protected]>
Co-Authored-By: Keke Yi <[email protected]>
Co-Authored-By: Keke Yi <[email protected]>
Co-Authored-By: weekface <[email protected]>
@@ -33,9 +33,19 @@ category: how-to | |||
kubectl create secret generic tidb-secret --from-literal=root=<root-password> --from-literal=developer=<developer-passowrd> --namespace=<namespace> | |||
``` | |||
|
|||
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。 | |||
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户`developer`默认只有`USAGE`权限,其他权限请在`tidb.initSql`中设置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户`developer`默认只有`USAGE`权限,其他权限请在`tidb.initSql`中设置。 | |
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户 `developer` 默认只有 `USAGE` 权限,其他权限请在 `tidb.initSql` 中设置。 |
@@ -34,9 +34,19 @@ aliases: ['/docs-cn/v3.0/how-to/configure/initialize-cluster/'] | |||
kubectl create secret generic tidb-secret --from-literal=root=<root-password> --from-literal=developer=<developer-passowrd> --namespace=<namespace> | |||
``` | |||
|
|||
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。 | |||
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户developer默认只有USAGE权限,其他权限请在tidb.initSql中设置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Keep the format consistent.
- Leave a space between Chinese and English characters.
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户developer默认只有USAGE权限,其他权限请在tidb.initSql中设置。 | |
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户 `developer` 默认只有 `USAGE` 权限,其他权限请在 `tidb.initSql` 中设置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the comments from @lilin90, LGTM for the rest.
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。 | ||
该命令会创建 `root` 和 `developer` 两个用户的密码,存到 `tidb-secret` 的 Secret 里面。并且创建的普通用户developer默认只有USAGE权限,其他权限请在tidb.initSql中设置。 | ||
|
||
2. 设置允许访问 TiDB 的主机 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. 设置允许访问 TiDB 的主机 | |
3. 设置允许访问 TiDB 的主机 |
tidb: | ||
passwordSecretName: tidb-secret | ||
permitHost: <Mysql-client-host-name> | ||
``` | ||
|
||
3. 部署集群 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. 部署集群 | |
4. 部署集群 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is changed, added or deleted?
tidb-in-kubernetes document: add permithost document.
What is the related PR or file link(s)?
pingcap/tidb-operator#733
Which version does your change affect?
tidb-operator v1.0 +