[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"/en/kb/manual/what-is-kubernetesKbData":3},{"page":4,"pages":95,"recommendedPages":96,"category":41,"categoryTree":41,"total":102,"currentOrder":125,"activeManualCategoryId":41,"tag":-1},{"route":5,"uuid":8,"title":9,"excerpt":10,"content":11,"view_count":12,"published_at":13,"modified_at":13,"like":14,"category":17,"hero_image":34,"seo_metadata":35,"schema_org_metadata":39,"open_graph_metadata":42,"sections":43,"tags":90,"breadcrumbs":91,"images":94},{"language":6,"path":7},"en","/kb/manual/what-is-kubernetes","4df6686a-8edd-8055-e4e9-70607c90f4ed","What is Kubernetes (K8s)? Key terms: cluster, container, services","This article explains the key concepts of Kubernetes that you’ll need to work with Managed Kubernetes. If you’re already familiar with Kubernetes, skip ahead to creating a cluster.","\u003Cp>This article explains the key concepts of Kubernetes that you’ll need to work with Managed Kubernetes. If you’re already familiar with Kubernetes, skip ahead to \u003Ca href=\"https://beget.com/en/kb/manual/creating-and-configuring-cluster-kubernetes\">creating a cluster\u003C/a>.\u003C/p>\n\u003Cp>The complete Kubernetes documentation is available on the \u003Ca href=\"https://kubernetes.io/ru/docs/home/\" rel=\"nofollow\">official website\u003C/a>.\u003C/p>\n\u003Ch2 id=\"what-is-kubernetes\">What is Kubernetes\u003C/h2>\n\u003Cp>Kubernetes (K8s) is a platform for automating the deployment, scaling, and management of containerized applications.\u003C/p>\n\u003Cp>Instead of manually starting an application on a specific server, monitoring its status, and restarting it in case of failures, you describe the desired state (how many instances of the application should be running, how many resources to allocate, how to handle traffic), and Kubernetes maintains that state automatically.\u003C/p>\n\u003Ch2 id=\"containers\">Containers\u003C/h2>\n\u003Cp>A container is an isolated environment for running an application. The application itself is packaged into the container along with all its dependencies: libraries, configuration, and runtime environment. As a result, with Kubernetes containers, the application behaves identically regardless of where it is run, on a developer’s local machine or on a server in a cloud infrastructure.\u003C/p>\n\u003Cp>Containers are created from images. An image is a template used to run a container. The most common format is Docker images.\u003C/p>\n\u003Ch2 id=\"cluster\">Cluster\u003C/h2>\n\u003Cp>A Kubernetes cluster is a set of servers (nodes) grouped together to jointly run containerized applications. A cluster consists of two types of components:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>Control plane (Master nodes)\u003C/strong> – components that manage the cluster’s state: they receive requests, distribute the load, and monitor the status of applications. The control plane Kubernetes is fully managed by the platform.\u003C/li>\n\u003Cli>\u003Cstrong>Worker nodes\u003C/strong> – servers on which your applications actually run.\u003C/li>\n\u003C/ul>\n\u003Ch2 id=\"node\">Node\u003C/h2>\n\u003Cp>A node is an individual server within a cluster. There are two types of nodes:\u003C/p>\n\u003Cp>\u003Cstrong>Master node\u003C/strong> – a server in the control plane. It runs the Kubernetes components responsible for coordinating the cluster:\u003C/p>\n\u003Cul>\n\u003Cli>API server – accepts commands (for example, from `kubectl`, the command-line tool for managing Kubernetes)\u003C/li>\n\u003Cli>etcd – the cluster state store\u003C/li>\n\u003Cli>Scheduler – decides on which node to launch a new pod\u003C/li>\n\u003Cli>Controller Manager – ensures that the current state of the cluster matches the desired state\u003C/li>\n\u003C/ul>\n\u003Cp>\u003Cstrong>Worker node\u003C/strong> – a server for running user applications. Each worker node runs:\u003C/p>\n\u003Cul>\n\u003Cli>kubelet – an agent that receives instructions from the control plane and manages containers on the node\u003C/li>\n\u003Cli>kube-proxy – manages network rules for accessing applications\u003C/li>\n\u003Cli>Container runtime – an environment for running containers\u003C/li>\n\u003C/ul>\n\u003Ch2 id=\"pods\">Pods\u003C/h2>\n\u003Cp>A pod is the smallest deployment unit in Kubernetes. Every container in Kubernetes runs inside a pod. A pod contains one or more containers that:\u003C/p>\n\u003Cul>\n\u003Cli>run on the same node\u003C/li>\n\u003Cli>share a network namespace (have a shared IP address)\u003C/li>\n\u003Cli>can use shared volumes for data storage\u003C/li>\n\u003C/ul>\n\u003Cp>Most often, a single pod contains a single container with an application. Multiple containers in a single pod are used when the containers are closely related and must work together (for example, an application and a sidecar proxy for logging).\u003C/p>\n\u003Cp>Pods are not created directly; they are managed by controllers.\u003C/p>\n\u003Ch2 id=\"controllers\">Controllers\u003C/h2>\n\u003Cp>Controllers monitor the status of applications and maintain them in accordance with the specified configuration.\u003C/p>\n\u003Cp>\u003Cstrong>Deployment\u003C/strong> is the most common controller. It specifies which container to run and how many instances (replicas) to create. If a pod fails, the Deployment automatically creates a new one.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: nginx\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: nginx\n  template:\n    metadata:\n      labels:\n        app: nginx\n    spec:\n      containers:\n      - name: nginx\n        image: nginx:latest\n        ports:\n        - containerPort: 80\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>This manifest creates three pods running Nginx. If one of the pods terminates with an error, the Deployment will launch a new one to ensure that the number of running instances remains at three.\u003C/p>\n\u003Cp>Other common controllers:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>StatefulSet\u003C/strong> – for stateful applications (databases, queues). Unlike Deployment, it guarantees consistent pod names and startup order.\u003C/li>\n\u003Cli>\u003Cstrong>DaemonSet\u003C/strong> – runs one pod per node. Used for system tasks: log collection, monitoring, and network agents.\u003C/li>\n\u003Cli>\u003Cstrong>Job / CronJob\u003C/strong> – for one-time or periodic tasks (migrations, backups, reports).\u003C/li>\n\u003C/ul>\n\u003Ch2 id=\"services\">\u003Cstrong>Services\u003C/strong>\u003C/h2>\n\u003Cp>Pods in Kubernetes are assigned IP addresses, but these addresses are temporary; the address changes when the pod is recreated. Kubernetes uses services to solve this problem: a service provides a stable network address for a group of pods.\u003C/p>\n\u003Cp>A service selects pods based on labels and distributes traffic among them.\u003C/p>\n\u003Cp>Main service types:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>ClusterIP\u003C/strong> (default) – accessible only within the cluster. Used for communication between application components.\u003C/li>\n\u003Cli>\u003Cstrong>NodePort \u003C/strong>– opens a port on each cluster node for external access.\u003C/li>\n\u003Cli>\u003Cstrong>LoadBalancer \u003C/strong>– creates an external load balancer. When creating a LoadBalancer service, the platform automatically provides a load balancer. For more details, see the article “\u003Ca href=\"https://beget.com/en/kb/manual/network-and-load-balancer-kubernetes\">Networking and load balancers\u003C/a>”.\u003C/li>\n\u003C/ul>\n\u003Ch2 id=\"namespaces\">Namespaces\u003C/h2>\n\u003Cp>A namespace is a way to logically separate resources within a single cluster. Different teams, environments, or applications can operate in their own namespaces without interfering with one another.\u003C/p>\n\u003Cp>By default, a cluster has several namespaces:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Ccode>default\u003C/code> – used if no namespace is explicitly specified\u003C/li>\n\u003Cli>\u003Ccode>kube-system\u003C/code> – Kubernetes system components\u003C/li>\n\u003Cli>\u003Ccode>kube-public\u003C/code> – resources available to all cluster users\u003C/li>\n\u003C/ul>\n\u003Cp>Creating your own namespace:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>kubectl create namespace my-app\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"manifests\">Manifests\u003C/h2>\n\u003Cp>Resource configurations in Kubernetes are described in YAML manifests. A manifest is a file that specifies which resource to create and with what parameters.\u003C/p>\n\u003Cp>Manifest structure:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>apiVersion: v1          # API version\nkind: Pod               # resource type\nmetadata:\n  name: my-pod          # resource name\n  namespace: default    # namespace\n  labels:\n    app: my-app         # identification tags\nspec:                   # resource specification\n  containers:\n  - name: app\n    image: my-app:latest\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>The manifest is applied by the command:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;shell&quot;}\">\u003Ccode>kubectl apply -f manifest.yaml\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"labels-and-selectors\">\u003Cstrong>Labels and Selectors\u003C/strong>\u003C/h2>\n\u003Cp>Labels are key-value pairs assigned to Kubernetes resources. They are used to organize and select resources.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>metadata:\n  labels:\n    app: frontend\n    env: production\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>Selectors allow you to select resources based on labels. For example, a service can route traffic only to pods with a specific label:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>selector:\n  app: frontend\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"taints-and-tolerations\">Taints and Tolerations\u003C/h2>\n\u003Cp>Taints and Tolerations are a mechanism that controls which pods can run on which nodes.\u003C/p>\n\u003Cp>A \u003Cstrong>taint \u003C/strong>is assigned to a node and prevents pods without a corresponding toleration from running on that node.\u003C/p>\n\u003Cp>A \u003Cstrong>toleration \u003C/strong>is specified in a pod’s specification and allows it to run on a node with a specific taint.\u003C/p>\n\u003Ch3 id=\"how-it-works\">How it works\u003C/h3>\n\u003Cp>A taint consists of a key, a value, and an effect:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>&lt;key&gt;=&lt;value&gt;:&lt;effect&gt;\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>Effects:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>NoSchedule \u003C/strong>– Pods without the corresponding Toleration will not be scheduled on this node. Pods already running are not affected.\u003C/li>\n\u003Cli>\u003Cstrong>PreferNoSchedule \u003C/strong>– Kubernetes will avoid scheduling pods without Toleration, but may schedule them if resources are scarce on other nodes.\u003C/li>\n\u003Cli>\u003Cstrong>NoExecute \u003C/strong>– Pods without Toleration will not only not be scheduled, but will also be removed from the node if they are already running.\u003C/li>\n\u003C/ul>\n\u003Ch3 id=\"example\">Example\u003C/h3>\n\u003Cp>Suppose you have a group of nodes dedicated to critical services. You apply a taint to these nodes:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>kubectl taint nodes node1 dedicated=critical:NoSchedule\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>Now, regular pods will not be able to run on node1. For a pod to run on this node, you must specify a Toleration in its manifest:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>spec:\n  tolerations:\n  - key: \"dedicated\"\n    operator: \"Equal\"\n    value: \"critical\"\n    effect: \"NoSchedule\"\n  containers:\n  - name: app\n    image: my-critical-app:latest\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"why-is-this-necessary\">Why is this necessary?\u003C/h2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Load isolation\u003C/strong> – to dedicate nodes to specific applications, preventing unrelated pods from running on them\u003C/li>\n\u003Cli>\u003Cstrong>Environment separation\u003C/strong> – to prevent dev-pods from running on production nodes\u003C/li>\n\u003Cli>\u003Cstrong>Specialized hardware\u003C/strong> – to reserve nodes with GPUs or large amounts of memory exclusively for suitable tasks\u003C/li>\n\u003C/ul>\n\u003Cp>Taints can be assigned when creating or editing a worker group; they are automatically applied to all nodes in the group. For more details, see the article “\u003Ca href=\"https://beget.com/en/kb/manual/creating-and-configuring-cluster-kubernetes\">Creating and Configuring a Cluster\u003C/a>”.\u003C/p>\n\u003Ch2 id=\"all-articles-in-this-section\">All articles in this section\u003C/h2>\n\u003Col>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/managed-kubernetes\">Kubernetes (K8s)\u003C/a> – An Overview of the Managed Kubernetes Service\u003C/li>\n\u003Cli>\u003Cstrong>Kubernetes Basics\u003C/strong> – You are here\u003C/li>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/creating-and-configuring-cluster-kubernetes\">Creating and Configuring a Cluster\u003C/a> – Master Node Configuration, Networking, and Worker Groups\u003C/li>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/kubectl\">Connecting to the Cluster and Working with kubectl\u003C/a> – kubeconfig, Connectivity, and Core Kubernetes Tools\u003C/li>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/cluster-management-kubernetes\">Cluster management\u003C/a> – adding nodes, changing configuration, updating, and deleting\u003C/li>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/network-and-load-balancer-kubernetes\">Networking and load balancers\u003C/a> – network model, external and internal load balancers\u003C/li>\n\u003Cli>\u003Ca href=\"https://beget.com/en/kb/manual/limits-quotas-restrictions-kubernetes\">Limits, quotas, and constraints\u003C/a> – platform constraints, what can and cannot be changed\u003C/li>\n\u003C/ol>\n\u003Cp>If you have any questions, please submit a ticket via the account dashboard (under “\u003Ca href=\"https://cp.beget.com/support?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=osnovy_kubernetes&amp;utm_content=cp_support\">Help and Support\u003C/a>”). And if you’d like to discuss this article or our products, we’d love to see you in our Telegram \u003Ca href=\"https://t.me/beget_chat\">community\u003C/a>.\u003C/p>\n",52,"2026-11-11T14:50:33.000Z",{"count":15,"liked":16},1,false,{"route":18,"title":20,"tags":21,"breadcrumbs":27,"uuid":28,"parent_uuid":29,"default_page_path":26,"seo_metadata":30},{"language":6,"path":19},"/kb/manual","Control Panel User's Manual",[22],{"id":23,"title":24,"seo_metadata":25},"vps","VPS",{"title":26,"description":26,"header":26,"keywords":26},"",[],"5afe272b-ca8e-731e-0871-c5b169760081","80213437-0399-4b4f-2333-426bb5050534",{"title":31,"description":32,"header":31,"keywords":33},"Beget Hosting Panel Guide","Руководство по панели управления Beget. Инструкции по работе с аккаунтом, файловыми менеджерами, почтой, CMS и др.","hosting panel instructions, hosting beget",{"src":26,"text":26},{"title":36,"description":37,"keywords":38},"What is Kubernetes (K8s)? Basic Definitions","Read the documentation on using Managed Kubernetes in Beget Cloud ✔ Key terms: clusters, nodes, pods, controllers, and services","Managed Kubernetes User Guide for Beget: A Guide and Documentation on the Basics of Working with Kubernetes Services",{"faq":40,"how_to":41,"product":41},[],null,{},[44,47,50,53,56,59,62,65,68,71,74,77,81,84,87],{"level":15,"name":45,"anchor":46},"What is Kubernetes","what-is-kubernetes",{"level":15,"name":48,"anchor":49},"Containers","containers",{"level":15,"name":51,"anchor":52},"Cluster","cluster",{"level":15,"name":54,"anchor":55},"Node","node",{"level":15,"name":57,"anchor":58},"Pods","pods",{"level":15,"name":60,"anchor":61},"Controllers","controllers",{"level":15,"name":63,"anchor":64},"Services","services",{"level":15,"name":66,"anchor":67},"Namespaces","namespaces",{"level":15,"name":69,"anchor":70},"Manifests","manifests",{"level":15,"name":72,"anchor":73},"Labels and Selectors","labels-and-selectors",{"level":15,"name":75,"anchor":76},"Taints and Tolerations","taints-and-tolerations",{"level":78,"name":79,"anchor":80},2,"How it works","how-it-works",{"level":78,"name":82,"anchor":83},"Example","example",{"level":15,"name":85,"anchor":86},"Why is this necessary?","why-is-this-necessary",{"level":15,"name":88,"anchor":89},"All articles in this section","all-articles-in-this-section",[],[92],{"route":93,"title":20},{"language":6,"path":19},[],[],[97,107,116],{"route":98,"uuid":100,"title":101,"excerpt":26,"content":26,"view_count":102,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":103,"tags":104,"breadcrumbs":105,"images":106},{"language":6,"path":99},"/kb/manual/cms","0458f05b-7e52-1312-fae2-0aa2e404b4b1","CMS",0,[],[],[],[],{"route":108,"uuid":110,"title":111,"excerpt":26,"content":26,"view_count":102,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":112,"tags":113,"breadcrumbs":114,"images":115},{"language":6,"path":109},"/kb/manual/network-and-load-balancer-kubernetes","a6b7e2c4-4efe-66e9-fa8a-f6706b10a442","Kubernetes Networking and Load Balancer",[],[],[],[],{"route":117,"uuid":119,"title":120,"excerpt":26,"content":26,"view_count":102,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":121,"tags":122,"breadcrumbs":123,"images":124},{"language":6,"path":118},"/kb/manual/service-administration","2bfdd7bc-94bb-ba9d-cf91-60638bb90e7c","Service administration",[],[],[],[],"popularity-desc"]