Clusters
Preview

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

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

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

clusterId*string
Formatuuid
Idempotency-Key?string

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

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
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

A wildcard such as *.prod-eu-1.example.com; required for the domain mode.

Lengthlength <= 200
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

Required for own_certificate.

Lengthlength <= 63

Response Body

The cluster's addresses now.

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 PUT 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/addresses' \  -H 'Content-Type: application/json' \  -d '{  "mode": "domain",  "https": "letsencrypt"}'
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"  ]}