Set how deployments on a cluster are reached
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`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
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?stringA wildcard such as *.prod-eu-1.example.com; required for the domain mode.
length <= 200https*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?stringRequired for own_certificate.
length <= 63The cluster's addresses now.
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 PUT 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/addresses' \ -H 'Content-Type: application/json' \ -d '{ "mode": "domain", "https": "letsencrypt"}'{ "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" ]}Get how deployments on a cluster are reached GET
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
Read a cluster again for addresses POST
Asks the cluster's operator to read the ingress classes, the load balancer, cert-manager and the Gateway API now, and keeps the answer. It changes nothing in the cluster. 503 `previews.operator_unreachable` when the operator is not connected.