I've not done it by hand in a while so my answer may not be 100%
accurate, but the best way to join a cluster these days is through
`PUT /1.0/cluster` which then takes:
- cluster_address as the address and port of the cluster you're joining
- cluster_certificate as the X509 PEM encoded certificate of the
cluster (cluster.crt on the target cluster effectively)
- server_address as the address and port of the joining server
- cluster_password as the trust password of the target cluster
- server_name as the name of the joining server
- enabled which must be set to true
- member_config as a list of key/value answers to the config
questions available in `GET /1.0/cluster` on the target cluster
On Mon, Jun 7, 2021 at 3:04 AM Felix Gläske <
soup...@gmail.com> wrote:
>
> I'm trying to bootstrap a new cluster using the http rest api but I'm not 100% sure how to implement it.
> I'm looking at the PUT /1.0/cluster endpoint (
https://linuxcontainers.org/lxd/api/master/#/cluster/cluster_put)
>
> Which values do I have to send to bootstrap a cluster? If I don't specify any ClusterCertificate, the api tells me "No target cluster member certificate provided". But when I want to bootstrap a cluster wouldn't I have to provide a key for the certificate as well somehow?
>
> Can someone explain in more detail how to use the API endpoint(s) for what I want to achieve or are there examples available somewhere that I have not found yet?
>
> Best
> Felix
>
> --
> You received this message because you are subscribed to the Google Groups "lxc-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
lxc-users+...@lists.linuxcontainers.org.
> To view this discussion on the web visit
https://groups.google.com/a/lists.linuxcontainers.org/d/msgid/lxc-users/703e4374-ac13-4987-b73f-b750bc1bb006n%40lists.linuxcontainers.org.