Get how deployments on a cluster are reached
How the deployments of apps that can be reached get their address on this cluster (the address mode, the domain, HTTPS), and what the cluster's operator last read for it: the ingress classes and the load balancer address, whether cert-manager is installed, and whether the Gateway API is there. A clu
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidThe cluster's addresses.
application/json- response
mode*AddressModedomain puts a deployment under the wildcard domain, as <app>-<deployment>.<domain>. load_balancer makes the address from the cluster's load balancer through sslip.io, as <app>-<deployment>.<ip>.sslip.io. own leaves it to the app's manifests: Wardn only deploys, and reads the link from the Ingress or HTTPRoute.
"domain""load_balancer""own"domain*stringhttps*AddressHttpsletsencrypt asks cert-manager for a certificate through the wardn-letsencrypt ClusterIssuer; a cluster without cert-manager gives a deployment no link and says why. own_certificate serves the TLS Secret named in tlsSecret, which must exist in the deployment's namespace. off serves plain HTTP. It does not apply to own.
"letsencrypt""own_certificate""off"tlsSecret*stringchecked*booleanWhether the operator has read the cluster at all.
checkedAt?stringdate-timeoperatorConnected*booleanaddress?stringThe address deployments are reached on; absent when the cluster has no public address.
withoutDomain?stringWhat a deployment's address ends with when the cluster has no domain, such as *.203.0.113.9.sslip.io; absent without an IP address.
ingressClasses*array<>loadBalancers*array<>certManager*gatewayApi*booleancanInstallCertManager*booleanTrue while the cluster lets Wardn prepare namespaces and cert-manager is not there.
installVersion?stringThe release of cert-manager Wardn would install.
problems*array<string>What the operator could not read.
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/addresses'{ "mode": "domain", "domain": "string", "https": "letsencrypt", "tlsSecret": "string", "checked": true, "checkedAt": "2019-08-24T14:15:22Z", "operatorConnected": true, "address": "string", "withoutDomain": "string", "ingressClasses": [ { "name": "string", "controller": "string", "default": true, "address": "string" } ], "loadBalancers": [ { "namespace": "string", "service": "string", "address": "string" } ], "certManager": { "installed": true, "ready": true, "version": "string", "issuer": "" }, "gatewayApi": true, "canInstallCertManager": true, "installVersion": "string", "problems": [ "string" ]}Replace a cluster's settings PUT
Agents may run on a production cluster once someone acknowledges the warning (`acknowledgeAgentsProduction`); moving a cluster to the production tier takes that acknowledgement back. `kube-system` and `wardn-system` are never managed and cannot be listed.
Set how deployments on a cluster are reached PUT
A deployment's address is `<app>-<deployment>.<domain>` with the `domain` mode, `<app>-<deployment>.<ip>.sslip.io` with the `load_balancer` mode, and whatever the app's own manifests say with `own`. Recorded in Activity as `cluster.addresses_updated`.