Tenant Configuration
Read or replace a tenant's configuration. A write replaces the entire configuration. Changing the hostname list also requires update permission on the tenant. Requires the Multi-Tenancy license.
TenantConfig exampleβ
An example TenantConfig:
apiVersion: management.loft.sh/v1
kind: TenantConfig
metadata:
name: development
spec:
hostnames:
- hostname: development.example.com
TenantConfig referenceβ
spec object β
Spec holds the per-tenant configuration.
spec object βhostnames object[] β
Hostnames are the DNS names that resolve to this tenant. Used for SSO
bootstrap, UI branding, and per-request tenant resolution.
This field is operator-only: it is set through this subresource and is not
delegable to a tenant, for the reasons on storagev1.TenantPlatformConfig. It is
stored here and read back from here, but the request path never reads the Secret:
the Tenant controller projects these onto Tenant.Status.Hostnames, and resolution
and the exclusivity check both go through the field index over that projection.
hostnames object[] βhostname required string β
Hostname is the DNS name the platform will treat as belonging to
this Tenant (e.g. acme.platform.example.com).
hostname required string βuiSettings object β
UISettings holds per-tenant user-interface configuration (branding and UI
customization), reusing the shared UISettingsConfig type.
uiSettings object βloftVersion string β
LoftVersion holds the current loft version
loftVersion string βlogoURL string β
LogoURL is url pointing to the logo to use in the vCluster Platform UI. This path must be accessible for clients accessing
the vCluster Platform UI!
logoURL string βfaviconURL string β
FaviconURL is url pointing to the favicon to use in the vCluster Platform UI. This path must be accessible for clients accessing
the vCluster Platform UI!
faviconURL string βsmallLogoURL string β
SmallLogoURL is url pointing to the small logo to use in the vCluster Platform UI. This path must be accessible for clients accessing
the vCluster Platform UI!
smallLogoURL string βlogoBackgroundColor string β
LogoBackgroundColor is the color value (ex: "#12345") to use as the background color for the logo
logoBackgroundColor string βlegalTemplate string β
LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft
legalTemplate string βprimaryColor string β
PrimaryColor is the color value (ex: "#12345") to use as the primary color
primaryColor string βsidebarColor string β
SidebarColor is the color value (ex: "#12345") to use for the sidebar
sidebarColor string βaccentColor string β
AccentColor is the color value (ex: "#12345") to use for the accent
accentColor string βcustomCss string[] β
CustomCSS holds URLs with custom css files that should be included when loading the UI
customCss string[] βcustomJavaScript string[] β
CustomJavaScript holds URLs with custom js files that should be included when loading the UI
customJavaScript string[] βnavBarButtons object[] β
NavBarButtons holds extra nav bar buttons
navBarButtons object[] βposition string β
Position holds the position of the button, can be one of:
TopStart, TopEnd, BottomStart, BottomEnd. Defaults to BottomEnd
position string βtext string β
Text holds text for the button
text string βlink string β
Link holds the link of the navbar button
link string βicon string β
Icon holds the url of the icon to display
icon string βexternalURLs object β
External URLs that can be called from the UI
externalURLs object βblock boolean β
Block determines if requests to external URLs from the UI should be blocked
block boolean βallow string[] β
Allow specifies which external URLs can be called. In addition to the predefined modules,
- "vcluster" (license page, feature descriptions, ...)
- "gtm" (google tag manager)
- "featurebase" (changelog)
any URL can be added to this list. This will allow the UI to make any request to this URL.
This is only active when Block is true.
allow string[] βauthentication object β
Authentication holds per-tenant SSO/authentication configuration. It reuses
the shared storage authentication type (the same shape as the global
platform Config), so a tenant's connectors have an identical schema.
Connector client secrets are stored inline, protected by permission-gated
projection and by encryption at rest when SECRETS_ENCRYPTION_KEY is set.
authentication object βoidc object β
OIDC holds oidc authentication configuration
oidc object βissuerUrl string β
IssuerURL is the URL the provider signs ID Tokens as. This will be the "iss"
field of all tokens produced by the provider and is used for configuration
discovery.
The URL is usually the provider's URL without a path, for example
"https://accounts.google.com" or "https://login.salesforce.com".
The provider must implement configuration discovery.
See: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig
issuerUrl string βclientId string β
ClientID the JWT must be issued for, the "sub" field. This plugin only trusts a single
client to ensure the plugin can be used with public providers.
The plugin supports the "authorized party" OpenID Connect claim, which allows
specialized providers to issue tokens to a client for a different client.
See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken
clientId string βclientSecret string β
ClientSecret to issue tokens from the OIDC provider
clientSecret string βredirectURI string β
loft redirect uri. E.g. https://loft.my.domain/auth/oidc/callback
redirectURI string βpostLogoutRedirectURI string β
Loft URI to be redirected to after successful logout by OIDC Provider
postLogoutRedirectURI string βcaFile string β
Path to a PEM encoded root certificate of the provider. Optional
caFile string βinsecureCa boolean β
Specify whether to communicate without validating SSL certificates
insecureCa boolean βpreferredUsername string β
Configurable key which contains the preferred username claims
preferredUsername string βloftUsernameClaim string β
LoftUsernameClaim is the JWT field to use as the user's username.
loftUsernameClaim string βusernameClaim string β
UsernameClaim is the JWT field to use as the user's id.
usernameClaim string βemailClaim string β
EmailClaim is the JWT field to use as the user's email.
emailClaim string βallowedExtraClaims string[] β
AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider.
allowedExtraClaims string[] βusernamePrefix string β
UsernamePrefix, if specified, causes claims mapping to username to be prefix with
the provided value. A value "oidc:" would result in usernames like "oidc:john".
usernamePrefix string βgroupsClaim string β
GroupsClaim, if specified, causes the OIDCAuthenticator to try to populate the user's
groups with an ID Token field. If the GroupsClaim field is present in an ID Token the value
must be a string or list of strings.
groupsClaim string βgroups string[] β
If required groups is non empty, access is denied if the user is not part of at least one
of the specified groups.
groups string[] βscopes string[] β
Scopes that should be sent to the server. If empty, defaults to "email" and "profile".
scopes string[] βgetUserInfo boolean β
GetUserInfo, if specified, tells the OIDCAuthenticator to try to populate the user's
information from the UserInfo.
getUserInfo boolean βgroupsPrefix string β
GroupsPrefix, if specified, causes claims mapping to group names to be prefixed with the
value. A value "oidc:" would result in groups like "oidc:engineering" and "oidc:marketing".
groupsPrefix string βtype string β
Type of the OIDC to show in the UI. Only for displaying purposes
type string βresource string β
Resource, if specified, is the value that is set for the "resource" URL parameter when making a request to the /token endpoint of the
OIDC provider.
resource string βgithub object β
Github holds github authentication configuration
github object βclientId string β
ClientID holds the github client id
clientId string βclientSecret required string β
ClientID holds the github client secret
clientSecret required string βredirectURI required string β
RedirectURI holds the redirect URI. Should be https://loft.domain.tld/auth/github/callback
redirectURI required string βorgs object[] β
Loft queries the following organizations for group information.
Group claims are formatted as "(org):(team)".
For example if a user is part of the "engineering" team of the "coreos"
org, the group claim would include "coreos:engineering".
If orgs are specified in the config then user MUST be a member of at least one of the specified orgs to
authenticate with loft.
orgs object[] βname string β
Organization name in github (not slug, full name). Only users in this github
organization can authenticate.
name string βteams string[] β
Names of teams in a github organization. A user will be able to
authenticate if they are members of at least one of these teams. Users
in the organization can authenticate if this field is omitted from the
config file.
teams string[] βhostName string β
Required ONLY for GitHub Enterprise.
This is the Hostname of the GitHub Enterprise account listed on the
management console. Ensure this domain is routable on your network.
hostName string βrootCA string β
ONLY for GitHub Enterprise. Optional field.
Used to support self-signed or untrusted CA root certificates.
rootCA string βgitlab object β
Gitlab holds gitlab authentication configuration
gitlab object βclientId required string β
Gitlab client id
clientId required string βclientSecret required string β
Gitlab client secret
clientSecret required string βredirectURI required string β
Redirect URI
redirectURI required string βbaseURL string β
BaseURL is optional, default = https://gitlab.com
baseURL string βgroups string[] β
Optional groups whitelist, communicated through the "groups" scope.
If groups is omitted, all of the user's GitLab groups are returned.
If groups is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured groups below will go into the groups claim. Conversely, if the user is not in any of the configured groups, the user will not be authenticated.
groups string[] βgroups is omitted, all of the user's GitLab groups are returned.
If groups is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured groups below will go into the groups claim. Conversely, if the user is not in any of the configured groups, the user will not be authenticated.google object β
Google holds google authentication configuration
google object βclientId required string β
Google client id
clientId required string βclientSecret required string β
Google client secret
clientSecret required string βredirectURI required string β
loft redirect uri. E.g. https://loft.my.domain/auth/google/callback
redirectURI required string βscopes string[] β
defaults to "profile" and "email"
scopes string[] βhostedDomains string[] β
Optional list of whitelisted domains
If this field is nonempty, only users from a listed domain will be allowed to log in
hostedDomains string[] βgroups string[] β
Optional list of whitelisted groups
If this field is nonempty, only users from a listed group will be allowed to log in
groups string[] βserviceAccountFilePath string β
Optional path to service account json
If nonempty, and groups claim is made, will use authentication from file to
check groups with the admin directory api
serviceAccountFilePath string βadminEmail string β
Required if ServiceAccountFilePath
The email of a GSuite super user which the service account will impersonate
when listing groups
adminEmail string βmicrosoft object β
Microsoft holds microsoft authentication configuration
microsoft object βclientId required string β
Microsoft client id
clientId required string βclientSecret required string β
Microsoft client secret
clientSecret required string βredirectURI required string β
loft redirect uri. Usually https://loft.my.domain/auth/microsoft/callback
redirectURI required string βtenant string β
tenant configuration parameter controls what kinds of accounts may be authenticated in loft.
By default, all types of Microsoft accounts (consumers and organizations) can authenticate in loft via Microsoft.
To change this, set the tenant parameter to one of the following:
common - both personal and business/school accounts can authenticate in loft via Microsoft (default)
consumers - only personal accounts can authenticate in loft
organizations - only business/school accounts can authenticate in loft
tenant uuid or tenant name - only accounts belonging to specific tenant identified by either tenant uuid or tenant name can authenticate in loft
tenant string βgroups string[] β
It is possible to require a user to be a member of a particular group in order to be successfully authenticated in loft.
groups string[] βonlySecurityGroups boolean β
configuration option restricts the list to include only security groups. By default all groups (security, Office 365, mailing lists) are included.
onlySecurityGroups boolean βuseGroupsAsWhitelist boolean β
Restrict the groups claims to include only the userβs groups that are in the configured groups
useGroupsAsWhitelist boolean βsaml object β
SAML holds saml authentication configuration
saml object βredirectURI string β
If the response assertion status value contains a Destination element, it
must match this value exactly.
Usually looks like https://your-loft-domain/auth/saml/callback
redirectURI string βssoURL string β
SSO URL used for POST value.
ssoURL string βcaData string β
CAData is a base64 encoded string that holds the ca certificate for validating the signature of the SAML response.
Either CAData, CA or InsecureSkipSignatureValidation needs to be defined.
caData string βusernameAttr string β
Name of attribute in the returned assertions to map to username
usernameAttr string βemailAttr string β
Name of attribute in the returned assertions to map to email
emailAttr string βgroupsAttr string β
Name of attribute in the returned assertions to map to groups
groupsAttr string βca string β
CA to use when validating the signature of the SAML response.
ca string βinsecureSkipSignatureValidation boolean β
Ignore the ca cert
insecureSkipSignatureValidation boolean βentityIssuer string β
When provided Loft will include this as the Issuer value during AuthnRequest.
It will also override the redirectURI as the required audience when evaluating
AudienceRestriction elements in the response.
entityIssuer string βssoIssuer string β
Issuer value expected in the SAML response. Optional.
ssoIssuer string βgroupsDelim string β
If GroupsDelim is supplied the connector assumes groups are returned as a
single string instead of multiple attribute values. This delimiter will be
used split the groups string.
groupsDelim string βallowedGroups string[] β
List of groups to filter access based on membership
allowedGroups string[] βfilterGroups boolean β
If used with allowed groups, only forwards the allowed groups and not all
groups specified.
filterGroups boolean βnameIDPolicyFormat string β
Requested format of the NameID. The NameID value is is mapped to the ID Token
'sub' claim.
This can be an abbreviated form of the full URI with just the last component. For
example, if this value is set to "emailAddress" the format will resolve to:
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
If no value is specified, this value defaults to:
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
nameIDPolicyFormat string βpassword object β
Password holds password authentication relevant information
password object βdisabled boolean β
If true login via password is disabled
disabled boolean βconnectors object[] β
Connectors are optional additional connectors for Loft.
connectors object[] βid string β
ID is the id that should show up in the url
id string βdisplayName string β
DisplayName is the name that should show up in the ui
displayName string βoidc object β
OIDC holds oidc authentication configuration
oidc object βissuerUrl string β
IssuerURL is the URL the provider signs ID Tokens as. This will be the "iss"
field of all tokens produced by the provider and is used for configuration
discovery.
The URL is usually the provider's URL without a path, for example
"https://accounts.google.com" or "https://login.salesforce.com".
The provider must implement configuration discovery.
See: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig
issuerUrl string βclientId string β
ClientID the JWT must be issued for, the "sub" field. This plugin only trusts a single
client to ensure the plugin can be used with public providers.
The plugin supports the "authorized party" OpenID Connect claim, which allows
specialized providers to issue tokens to a client for a different client.
See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken
clientId string βclientSecret string β
ClientSecret to issue tokens from the OIDC provider
clientSecret string βredirectURI string β
loft redirect uri. E.g. https://loft.my.domain/auth/oidc/callback
redirectURI string βpostLogoutRedirectURI string β
Loft URI to be redirected to after successful logout by OIDC Provider
postLogoutRedirectURI string βcaFile string β
Path to a PEM encoded root certificate of the provider. Optional
caFile string βinsecureCa boolean β
Specify whether to communicate without validating SSL certificates
insecureCa boolean βpreferredUsername string β
Configurable key which contains the preferred username claims
preferredUsername string βloftUsernameClaim string β
LoftUsernameClaim is the JWT field to use as the user's username.
loftUsernameClaim string βusernameClaim string β
UsernameClaim is the JWT field to use as the user's id.
usernameClaim string βemailClaim string β
EmailClaim is the JWT field to use as the user's email.
emailClaim string βallowedExtraClaims string[] β
AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider.
allowedExtraClaims string[] βusernamePrefix string β
UsernamePrefix, if specified, causes claims mapping to username to be prefix with
the provided value. A value "oidc:" would result in usernames like "oidc:john".
usernamePrefix string βgroupsClaim string β
GroupsClaim, if specified, causes the OIDCAuthenticator to try to populate the user's
groups with an ID Token field. If the GroupsClaim field is present in an ID Token the value
must be a string or list of strings.
groupsClaim string βgroups string[] β
If required groups is non empty, access is denied if the user is not part of at least one
of the specified groups.
groups string[] βscopes string[] β
Scopes that should be sent to the server. If empty, defaults to "email" and "profile".
scopes string[] βgetUserInfo boolean β
GetUserInfo, if specified, tells the OIDCAuthenticator to try to populate the user's
information from the UserInfo.
getUserInfo boolean βgroupsPrefix string β
GroupsPrefix, if specified, causes claims mapping to group names to be prefixed with the
value. A value "oidc:" would result in groups like "oidc:engineering" and "oidc:marketing".
groupsPrefix string βtype string β
Type of the OIDC to show in the UI. Only for displaying purposes
type string βresource string β
Resource, if specified, is the value that is set for the "resource" URL parameter when making a request to the /token endpoint of the
OIDC provider.
resource string βgithub object β
Github holds github authentication configuration
github object βclientId string β
ClientID holds the github client id
clientId string βclientSecret required string β
ClientID holds the github client secret
clientSecret required string βredirectURI required string β
RedirectURI holds the redirect URI. Should be https://loft.domain.tld/auth/github/callback
redirectURI required string βorgs object[] β
Loft queries the following organizations for group information.
Group claims are formatted as "(org):(team)".
For example if a user is part of the "engineering" team of the "coreos"
org, the group claim would include "coreos:engineering".
If orgs are specified in the config then user MUST be a member of at least one of the specified orgs to
authenticate with loft.
orgs object[] βname string β
Organization name in github (not slug, full name). Only users in this github
organization can authenticate.
name string βteams string[] β
Names of teams in a github organization. A user will be able to
authenticate if they are members of at least one of these teams. Users
in the organization can authenticate if this field is omitted from the
config file.
teams string[] βhostName string β
Required ONLY for GitHub Enterprise.
This is the Hostname of the GitHub Enterprise account listed on the
management console. Ensure this domain is routable on your network.
hostName string βrootCA string β
ONLY for GitHub Enterprise. Optional field.
Used to support self-signed or untrusted CA root certificates.
rootCA string βgitlab object β
Gitlab holds gitlab authentication configuration
gitlab object βclientId required string β
Gitlab client id
clientId required string βclientSecret required string β
Gitlab client secret
clientSecret required string βredirectURI required string β
Redirect URI
redirectURI required string βbaseURL string β
BaseURL is optional, default = https://gitlab.com
baseURL string βgroups string[] β
Optional groups whitelist, communicated through the "groups" scope.
If groups is omitted, all of the user's GitLab groups are returned.
If groups is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured groups below will go into the groups claim. Conversely, if the user is not in any of the configured groups, the user will not be authenticated.
groups string[] βgroups is omitted, all of the user's GitLab groups are returned.
If groups is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured groups below will go into the groups claim. Conversely, if the user is not in any of the configured groups, the user will not be authenticated.google object β
Google holds google authentication configuration
google object βclientId required string β
Google client id
clientId required string βclientSecret required string β
Google client secret
clientSecret required string βredirectURI required string β
loft redirect uri. E.g. https://loft.my.domain/auth/google/callback
redirectURI required string βscopes string[] β
defaults to "profile" and "email"
scopes string[] βhostedDomains string[] β
Optional list of whitelisted domains
If this field is nonempty, only users from a listed domain will be allowed to log in
hostedDomains string[] βgroups string[] β
Optional list of whitelisted groups
If this field is nonempty, only users from a listed group will be allowed to log in
groups string[] βserviceAccountFilePath string β
Optional path to service account json
If nonempty, and groups claim is made, will use authentication from file to
check groups with the admin directory api
serviceAccountFilePath string βadminEmail string β
Required if ServiceAccountFilePath
The email of a GSuite super user which the service account will impersonate
when listing groups
adminEmail string βmicrosoft object β
Microsoft holds microsoft authentication configuration
microsoft object βclientId required string β
Microsoft client id
clientId required string βclientSecret required string β
Microsoft client secret
clientSecret required string βredirectURI required string β
loft redirect uri. Usually https://loft.my.domain/auth/microsoft/callback
redirectURI required string βtenant string β
tenant configuration parameter controls what kinds of accounts may be authenticated in loft.
By default, all types of Microsoft accounts (consumers and organizations) can authenticate in loft via Microsoft.
To change this, set the tenant parameter to one of the following:
common - both personal and business/school accounts can authenticate in loft via Microsoft (default)
consumers - only personal accounts can authenticate in loft
organizations - only business/school accounts can authenticate in loft
tenant uuid or tenant name - only accounts belonging to specific tenant identified by either tenant uuid or tenant name can authenticate in loft
tenant string βgroups string[] β
It is possible to require a user to be a member of a particular group in order to be successfully authenticated in loft.
groups string[] βonlySecurityGroups boolean β
configuration option restricts the list to include only security groups. By default all groups (security, Office 365, mailing lists) are included.
onlySecurityGroups boolean βuseGroupsAsWhitelist boolean β
Restrict the groups claims to include only the userβs groups that are in the configured groups
useGroupsAsWhitelist boolean βsaml object β
SAML holds saml authentication configuration
saml object βredirectURI string β
If the response assertion status value contains a Destination element, it
must match this value exactly.
Usually looks like https://your-loft-domain/auth/saml/callback
redirectURI string βssoURL string β
SSO URL used for POST value.
ssoURL string βcaData string β
CAData is a base64 encoded string that holds the ca certificate for validating the signature of the SAML response.
Either CAData, CA or InsecureSkipSignatureValidation needs to be defined.
caData string βusernameAttr string β
Name of attribute in the returned assertions to map to username
usernameAttr string βemailAttr string β
Name of attribute in the returned assertions to map to email
emailAttr string βgroupsAttr string β
Name of attribute in the returned assertions to map to groups
groupsAttr string βca string β
CA to use when validating the signature of the SAML response.
ca string βinsecureSkipSignatureValidation boolean β
Ignore the ca cert
insecureSkipSignatureValidation boolean βentityIssuer string β
When provided Loft will include this as the Issuer value during AuthnRequest.
It will also override the redirectURI as the required audience when evaluating
AudienceRestriction elements in the response.
entityIssuer string βssoIssuer string β
Issuer value expected in the SAML response. Optional.
ssoIssuer string βgroupsDelim string β
If GroupsDelim is supplied the connector assumes groups are returned as a
single string instead of multiple attribute values. This delimiter will be
used split the groups string.
groupsDelim string βallowedGroups string[] β
List of groups to filter access based on membership
allowedGroups string[] βfilterGroups boolean β
If used with allowed groups, only forwards the allowed groups and not all
groups specified.
filterGroups boolean βnameIDPolicyFormat string β
Requested format of the NameID. The NameID value is is mapped to the ID Token
'sub' claim.
This can be an abbreviated form of the full URI with just the last component. For
example, if this value is set to "emailAddress" the format will resolve to:
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
If no value is specified, this value defaults to:
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
nameIDPolicyFormat string βdisableTeamCreation boolean β
Prevents from team creation for the new groups associated with the user at the time of logging in through sso,
Default behaviour is false, this means that teams will be created for new groups.
disableTeamCreation boolean βdisableUserCreation boolean β
DisableUserCreation prevents the SSO connectors from creating a new user on a users initial signin through sso.
Default behaviour is false, this means that a new user object will be created once a user without
a Kubernetes user object logs in.
disableUserCreation boolean βaccessKeyMaxTTLSeconds integer β
AccessKeyMaxTTLSeconds is the global maximum lifespan of an accesskey in seconds.
Leaving it 0 or unspecified will disable it.
Specifying 2592000 will mean all keys have a Time-To-Live of 30 days.
accessKeyMaxTTLSeconds integer βloginAccessKeyTTLSeconds integer β
LoginAccessKeyTTLSeconds is the time in seconds an access key is kept
until it is deleted.
Leaving it unspecified will default to 20 days.
Setting it to zero will disable the ttl.
Specifying 2592000 will mean all keys have a default Time-To-Live of 30 days.
loginAccessKeyTTLSeconds integer βcustomHttpHeaders object β
CustomHttpHeaders are additional headers that should be set for the authentication endpoints
customHttpHeaders object βgroupsFilters string[] β
GroupsFilters is a regex expression to only save matching sso groups into the user resource
groupsFilters string[] βTenantConfig (Get)β
Retrieve the tenant's current configuration.
- kubectl
- curl
Run the following command:
# Exchange development in the url below with the name of the Tenant
kubectl get --raw "/kubernetes/management/apis/management.loft.sh/v1/tenants/development/config"
Run the following curl command:
# Exchange development in the url below with the name of the Tenant
curl -s -X GET --insecure \
"https://$LOFT_DOMAIN/kubernetes/management/apis/management.loft.sh/v1/tenants/development/config" \
-H "Authorization: Bearer $ACCESS_KEY"
TenantConfig (Create)β
Replace the tenant's entire configuration. Include all settings that should remain configured.
- curl
Create a file object.yaml with the following contents:
apiVersion: management.loft.sh/v1
kind: TenantConfig
metadata:
name: development
spec:
hostnames:
- hostname: development.example.com
Then run the following curl command:
# Exchange development in the url below with the name of the Tenant
curl -s -X POST --insecure \
"https://$LOFT_DOMAIN/kubernetes/management/apis/management.loft.sh/v1/tenants/development/config" \
--data-binary "$(cat object.yaml)" \
-H "Content-Type: application/yaml" \
-H "Authorization: Bearer $ACCESS_KEY"