Clusters
Preview

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

GET
/clusters/{clusterId}/addresses
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

clusterId*string
Formatuuid

Response Body

The cluster's addresses.

application/json
  1. response
mode*AddressMode

domain 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.

Value in"domain""load_balancer""own"
domain*string
https*AddressHttps

letsencrypt 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.

Value in"letsencrypt""own_certificate""off"
tlsSecret*string
checked*boolean

Whether the operator has read the cluster at all.

checkedAt?string
Formatdate-time
operatorConnected*boolean
address?string

The address deployments are reached on; absent when the cluster has no public address.

withoutDomain?string

What 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*boolean
canInstallCertManager*boolean

True while the cluster lets Wardn prepare namespaces and cert-manager is not there.

installVersion?string

The release of cert-manager Wardn would install.

problems*array<string>

What the operator could not read.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/addresses'
Example Response
{  "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"  ]}