wodby cluster switch-k3s-server-address
Switch a k3s server to a private address for cluster traffic
Switch the server of a k3s cluster from its public address to a private one for cluster traffic, so worker nodes can join. The public address keeps serving public traffic. k3s restarts once: the Kubernetes API pauses for about a minute while apps keep running, and new deployments wait until the switch ends. Refused while application operations are active. If k3s doesn't come back on the private address, the server restores its previous settings. k3s doesn't start when its address is gone, so an address that isn't persistent needs --force.
Usage
wodby cluster switch-k3s-server-address CLUSTER_ID [flags]
Options
| Flag | Description | Default |
|---|---|---|
--address string |
Private address listed by k3s-private-addresses | - |
--data string |
JSON request body | - |
-f, --file string |
Path to JSON request body | - |
--force |
Switch to an address the server's network configuration isn't known to keep after a reboot | false |
-h, --help |
help for switch-k3s-server-address | false |
--timeout duration |
Maximum time to wait | 10m0s |
--wait |
Wait for the created task or deployment to finish | false |
Options inherited from parent commands
| Flag | Description | Default |
|---|---|---|
--access-token string |
Access token | - |
--api-base-url string |
Public REST API base URL | https://apiv2.wodby.com/v1 |
--api-key string |
API key | - |
--ci-config-path string |
Path to CI config | /tmp/.wodby-ci.json |
-o, --output string |
Output format: table, vertical, or json | table |
--verbose |
Verbose output | false |