Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataSphere
  • Getting started
    • All guides
      • Creating a node
      • Updating a node
      • Deleting a node
      • Configuring a node environment
      • Sending a request to a node
      • Suspending or resuming a node
      • Creating an alias
      • Updating an alias
      • Deleting an alias
      • Sending a request to an alias
    • Migrating a workflow to a new version
  • Terraform reference
  • Audit Trails events
  • Access management
  • Pricing policy
  • Public materials
  • Release notes
  1. Step-by-step guides
  2. DataSphere Inference
  3. Configuring a node environment

Configuring the environment for deploying a standalone service

Written by
Yandex Cloud
Updated at February 12, 2025
  1. Create a Docker image in the project and install the required dependencies in the build script. Build the image.

  2. Create a secret with a password for your container registry.

    If you are using a registry created in Yandex Container Registry, get authenticated using the authorized key for the service account that has the required roles and is specified in the project settings:

    1. If you do not have the Yandex Cloud CLI yet, install and initialize it.

    2. Get authorized keys for your service account and save them to the key.json file:

      yc iam key create --service-account-name default-sa -o key.json
      

      Result:

      id: aje8a87g4eaj********
      service_account_id: aje3932acde3********
      created_at: "2019-05-31T16:56:47Z"
      key_algorithm: RSA_2048
      
    3. Run the following command:

      cat key.json | docker login \
        --username json_key \
        --password-stdin \
        cr.yandex
      

      Where:

      • cat key.json: Command to write the contents of the key file to the output stream.
      • --password-stdin: Flag that enables reading the password from the input stream.

      Result:

      Login Succeeded
      

    Note

    Authorized keys do not expire, but you can always get new authorized keys and get authenticated again if something goes wrong.

  3. Upload the Docker image to the container registry. To do this, run this code in a cell:

    #!:docker-publish <image_name>:<image_tag> cr.yandex/<image_path>:<tag>
    
    • <image_name>: Name of the image in DataSphere.
    • <image_tag>: Tag of the image in DataSphere.
    • <image_path>: Path to the Container Registry image in cr.yandex/<registry_ID>/<image_name> format.
    • <tag>: Image tag.

    While uploading, enter the username and select the secret containing the password. When getting authorized in Container Registry, provide the json_key token type for the username and the secret for the password.

  4. In the node creation form, specify the path to the image in this format: cr.yandex/<registry_address>:<tag>.

Was the article helpful?

Previous
Deleting a node
Next
Sending a request to a node
© 2025 Direct Cursus Technology L.L.C.