Connecting to the YTsaurus HTTP proxy
Written by
Updated at July 24, 2026
After the component is enabled, the YTsaurus HTTP proxy is published at https://api.ytsaurus.<system_domain>. The proxy accepts requests via the YTsaurus CLI
Getting the HTTP proxy address
kubectl -n stackland-ytsaurus get ingress yt-http-proxies -o jsonpath='{.spec.rules[0].host}'
Getting an administrator token
To get authenticated in the HTTP proxy, you need a token from the ytadminsec Secret. See Getting an administrator password and token.
Write the token into the environment variable:
export YT_TOKEN=$(kubectl -n stackland-ytsaurus get secret ytadminsec -o jsonpath='{.data.token}' | base64 -d)
Connecting via the YTsaurus CLI
-
Install the YTsaurus CLI according to the official guide
. -
Specify the proxy address in the
YT_PROXYenvironment variable:export YT_PROXY=https://api.ytsaurus.<system_domain> -
Test the connection:
yt list /The command returns the Cypress root directory contents.
Connecting via the Python SDK
-
Install the YTsaurus Python SDK
. -
Connect to the cluster:
import os import yt.wrapper as yt client = yt.YtClient( proxy="https://api.ytsaurus.<system_domain>", token=os.environ["YT_TOKEN"], ) print(client.list("/"))