Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Spark™
  • Getting started
    • Resource relationships
    • Networking in Yandex Managed Service for Apache Spark™
    • Quotas and limits
    • Host classes
    • Maintenance
    • Autoscaling
    • Apache Spark™ properties
  • Access management
  • Pricing policy
  • Metrics Yandex Monitoring
  • Audit Trails events
  • Terraform reference
  • Release notes

In this article:

  • Cluster network addresses
  • Connecting a cluster to your on-premise resources
  • Requirements for cluster subnets
  • Security groups
  • Use cases
  1. Concepts
  2. Networking in Yandex Managed Service for Apache Spark™

Networking in Yandex Managed Service for Apache Spark™

Written by
Yandex Cloud
Updated at July 6, 2026
View in Markdown
  • Cluster network addresses
  • Connecting a cluster to your on-premise resources
  • Requirements for cluster subnets
  • Security groups
  • Use cases

When creating a cluster, you can specify the following network settings:

  • Network and subnet within it.

    There are certain requirements for the subnet, since a cluster allocates special network addresses.

  • Security groups to allow only specific outbound traffic.

Cluster network addressesCluster network addresses

A Yandex Managed Service for Apache Spark™ cluster allocates special network addresses in its subnet. It uses them to establish connections to Yandex Cloud resources. For example, you can set up a connection to a database in a Yandex Managed Service for PostgreSQL cluster.

The Yandex Managed Service for Apache Spark™ cluster connects to Yandex Cloud resources within the internal network; therefore, it only uses internal allocated network addresses. To give your cluster access to resources on the internet, configure a NAT gateway. When setting it up, link the route table with the NAT gateway to the Yandex Managed Service for Apache Spark™ cluster subnet.

The Yandex Managed Service for Apache Spark™ cluster allocates only dynamic network addresses. These may change, e.g., during maintenance.

Connecting a cluster to your on-premise resourcesConnecting a cluster to your on-premise resources

You can set up network connectivity between a Yandex Managed Service for Apache Spark™ cluster in the cloud and your on-premise resources. In which case the cluster will be able to connect to your on-premise resources.

Limit access to your on-premise resources using a firewall. In order to only allow access for traffic from a Yandex Managed Service for Apache Spark™ cluster, create a dedicated subnet for it and specify its range in the firewall settings. When configuring, do not use specific network addresses and do not place other resources in the created subnet.

For more information about setting up such network connectivity, see the Yandex Cloud Interconnect documentation.

Requirements for cluster subnetsRequirements for cluster subnets

Make sure your Yandex Managed Service for Apache Spark™ cluster subnet meets the following conditions:

  • The cluster network range does not overlap with the 10.248.0.0/13 address range. This range is used by the the auxiliary network in which Yandex Cloud manages the Yandex Managed Service for Apache Spark™ cluster's components.

    The cluster network range combines the ranges of all subnets in this network. This includes subnets not assigned for the cluster. For example, if the cluster is in subnet-a, while the network also features subnet-b and subnet-d, none of these subnets can have its range overlapping with 10.248.0.0/13.

    If this condition is not met, you will get an error when creating the cluster.

    This requirement also applies to your on-premise networks. From a Yandex Managed Service for Apache Spark™ cluster, you will not be able to connect to resources with IPs from the 10.248.0.0/13 range.

  • The subnet range includes at least 2 × N + 2 vacant IP addresses, where N is the total number of nodes that factors in maximum autoscaling. For example, a cluster consists of two hosts for drivers and of 1 to 8 hosts for executors. Then, N = 10, and the subnet must have at least 22 vacant addresses.

    This is the number of addresses you need for the cluster's special network addresses. If there are not enough vacant addresses in the subnet, the cluster will not operate properly.

    As the number of occupied IP addresses may vary, it is recommended to select a subnet with a sufficiently large number of addresses. To figure out the number of vacant IP addresses in the subnet, calculate its size by mask and then learn how many addresses are occupied.

Security groupsSecurity groups

Security group settings only apply to outgoing traffic for connections from the Yandex Managed Service for Apache Spark™ cluster. Therefore, you only need to configure rules for outgoing traffic to access specific resources.

Security group settings do not affect cluster functions or access to Apache Spark™ web interfaces (Spark History, Spark UI).

If you assign no security group to the Yandex Managed Service for Apache Spark™ cluster, it is automatically assigned the default group used in the cluster network. In such a security group, all traffic is allowed by default.

Make sure the security group settings of the Yandex Cloud resource allow connections from the cloud network of the Yandex Managed Service for Apache Spark™ cluster.

Use casesUse cases

Automating operations using Yandex Managed Service for Apache Airflow™

Was the article helpful?

Previous
Resource relationships
Next
Quotas and limits
© 2026 Direct Cursus Technology L.L.C.