Skip to content

Commit

Permalink
docs: Optimize and fix HA External DB document (#303)
Browse files Browse the repository at this point in the history
Signed-off-by: Miaoxiang <[email protected]>
  • Loading branch information
Miaoxiang-philips authored Jul 12, 2024
1 parent 9d0f091 commit c29a768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/datastore/ha.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For example, a command like the following could be used to install the K3s serve
```bash
curl -sfL https://get.k3s.io | sh -s - server \
--token=SECRET \
--datastore-endpoint="mysql://username:password@tcp(hostname:3306)/database-name"
--datastore-endpoint="mysql://username:password@tcp(hostname:3306)/database-name" \
--tls-san=<FIXED_IP> # Optional, needed if using a fixed registration address
```

Expand Down Expand Up @@ -92,7 +92,7 @@ See [Cluster Loadbalancer](./cluster-loadbalancer.md) for example configurations

This endpoint can also be used for accessing the Kubernetes API. So you can, for example, modify your [kubeconfig](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) file to point to it instead of a specific node.

To avoid certificate errors in such a configuration, you should configure the server with the `--tls-san YOUR_IP_OR_HOSTNAME_HERE` option. This option adds an additional hostname or IP as a Subject Alternative Name in the TLS cert, and it can be specified multiple times if you would like to access via both the IP and the hostname.
To avoid certificate errors in such a configuration, you should configure the server with the `--tls-san=YOUR_IP_OR_HOSTNAME_HERE` option. This option adds an additional hostname or IP as a Subject Alternative Name in the TLS cert, and it can be specified multiple times if you would like to access via both the IP and the hostname.

### 5. Optional: Join Agent Nodes

Expand Down

0 comments on commit c29a768

Please sign in to comment.