Skip to content

Commit

Permalink
cherry pick pingcap#2941 to release-1.1
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
lichunzhu authored and ti-srebot committed Jul 17, 2020
1 parent 4b4963f commit e3a38c5
Show file tree
Hide file tree
Showing 9 changed files with 4,748 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/api-references/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9888,6 +9888,32 @@ bool
Optional: Defaults to true</p>
</td>
</tr>
<tr>
<td>
<code>mysqlNodePort</code></br>
<em>
int
</em>
</td>
<td>
<em>(Optional)</em>
<p>Expose the tidb cluster mysql port to MySQLNodePort
Optional: Defaults to 0</p>
</td>
</tr>
<tr>
<td>
<code>statusNodePort</code></br>
<em>
int
</em>
</td>
<td>
<em>(Optional)</em>
<p>Expose the tidb status node port to StatusNodePort
Optional: Defaults to 0</p>
</td>
</tr>
</tbody>
</table>
<h3 id="tidbslowlogtailerspec">TiDBSlowLogTailerSpec</h3>
Expand Down
3 changes: 3 additions & 0 deletions examples/advanced/tidb-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ spec:
## Service defines a Kubernetes service of TiDB cluster.
## If you are in a public cloud environment, you can use cloud LB to access the TiDB service
## if you are in a private cloud environment, you can use ingress
## you can set mysqlNodePort and statusNodePort to expose server/status service to given NodePort
# service:
# externalTrafficPolicy: Local
# type: LoadBalancer
# mysqlNodePort: 30020
# statusNodePort: 30040

## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
Expand Down
Loading

0 comments on commit e3a38c5

Please sign in to comment.