Follow this doc to manually modify the IP of one instance-manager-r. e.g.,
curl -k -XPATCH -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" -H "Authorization: Bearer kubeconfig-xxxxxx" --data '{"status":{"ip":"1.1.1.1"}}' https://172.104.72.64/k8s/clusters/c-znrxc/apis/longhorn.io/v1beta1/namespaces/longhorn-system/instancemanagers/instance-manager-r-63ece607/status
- Notice that the bearer token
kubeconfig-xxx
can be found in your kube config file
- Remember to add
/status
at the end of the URL