Attach cluster
/titan/management/deployments/{id}/attached-clusters/{cluster_id}Path parameters
The attached cluster's id, chosen at registration (a DNS label).
Headers
Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).
Body parameters
Exact namespaces (not default or kube-*). At least one of allowed_namespaces and namespace_pattern.
The cluster's service-account issuer exactly as tokens carry it in iss (https).
The cluster's JWKS (kubectl get --raw /openid/v1/jwks): 1-8 RS256 (RSA 2048-4096) or Ed25519 keys. Absent: fetched once from the issuer's discovery document (https, port 443, jwks_uri on the issuer's host).
How long the pinned keys are trusted from now; register again to re-pin.
<prefix>* trusting every namespace starting with the prefix (3-52 characters ending in '-', not kube-).
Returns
200Organization-scoped result.AttachedCluster
Errors
- 400Invalid request or path; ATTACHED_CLUSTER_INVALID when the issuer, namespaces, lifetime, validity or keys do not validate (RS256 2048-4096 bit and Ed25519 keys only); ATTACHED_CLUSTER_DISCOVERY_FAILED when no jwks was given and the issuer's discovery document or JWKS could not be fetched, or does not match (give the jwks instead).
- 401Missing or invalid authenticated context.
- 403Organization mismatch or denied IAM action.
- 404Unknown or foreign deployment, or (with a cluster id) a cluster that is not attached.
- 405HTTP method is not supported on this route.
- 409The deployment is not a provisioned Titan Cloud or Titan Dedicated deployment (DEPLOYMENT_NOT_PROVISIONED) or is retired (DEPLOYMENT_RETIRED); ATTACHED_CLUSTER_CONFLICT when the issuer, cluster id or a key is the platform cluster's or another attached cluster's; ATTACHED_CLUSTER_LIMIT_REACHED; ATTACHED_CLUSTERS_NOT_ENABLED when Hexel has not enabled attached clusters on the deployment's region profile.
- 413Request body exceeds its size limit.
- 415Unsupported request media type.
- 502The deployment's Configuration Authority refused or answered unexpectedly (closed code).
- 503Local storage or the deployment's Configuration Authority unavailable.