How to connect to Managed Service for Kubernetes® clusters using kubectl
Use the public endpoint to connect to the cluster from the internet and the private endpoint to connect from a Compute virtual machine.The kubeconfig file uses your Nebius AI Cloud credentials. To let users sign in with an external identity provider instead, see Authentication with external OIDC providers in Managed Service for Kubernetes®.
Requirements to connect to a VM with private IP addressTo connect to a Managed Service for Kubernetes cluster from a Compute VM by using a private IP address or from another cluster by using a private load balancer, both must be in the same network and region. They can use different subnets, CIDR blocks, and routing tables.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nebius AI Cloud","colors":{"primary":"#6057f7","light":"#6057f7","dark":"#6057f7"},"logo":{"light":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7","dark":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7"},"favicon":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/favicon.ico?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8a5c39792808860e8902cbf209ba4843","appearance":{"default":"system"},"background":{"color":{"dark":"#26262A"}},"navbar":{"links":[{"href":"https://nebius.com/#ai-contact-form","label":"Contact us"}],"primary":{"type":"button","label":"Open web console","href":"https://console.nebius.com/"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@nebiusofficial","facebook":"https://www.facebook.com/nebiusofficial","linkedin":"https://www.linkedin.com/company/nebius","x":"https://x.com/nebiusai"}},"seo":{"metatags":{"google-site-verification":"p7dnMrsuoFlnyF9Oo0Ys0xPbeRCpQ9MedGsgi7nBOaI"}},"integrations":{"ga4":{"measurementId":"G-DHKV2ZED15"}},"contextual":{"options":["mcp","copy","view","vscode","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nebius-ai-cloud","hasAudioNarration":false,"actualSubdomain":"nebius-ai-cloud","customDomains":["docs.nebius.com"],"gitSource":{"type":"github","owner":"nebius","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED","enabled":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afe6977507aa25e651f7ec9","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Developer tools","count":1580},{"language":"default","tag":"Reference","count":1534},{"language":"default","tag":"CLI","count":822},{"language":"default","tag":"REST API","count":613},{"language":"default","tag":"v1","count":471},{"language":"default","tag":"iam","count":332},{"language":"default","tag":"vpc","count":237},{"language":"default","tag":"v1alpha1","count":225},{"language":"default","tag":"Infrastructure","count":217},{"language":"default","tag":"operation","count":189}],"searchSettings":{"isFiltersEnabled":false}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"_assets/css/styles.css","content":".inline_svg svg{display:inline}.custom-card-icon{width:fit-content!important}.custom-card-icon>div{padding:32px;height:100%}.getting_started_wrapper .custom-card-icon:hover{border:1px solid rgba(27, 45, 79, 0.15)!important}.dark .getting_started_wrapper .custom-card-icon,.dark .getting_started_wrapper .custom-card-icon:hover{border:1px solid rgba(255, 255, 255, 0.15)!important}.getting_started_wrapper .custom-card-icon>div:hover{background:rgba(0, 0, 0, 0.03)}.dark .getting_started_wrapper .custom-card-icon>div:hover{background:rgba(255, 255, 255, 0.03)}.platform_services_wrapper .custom-card-icon{border:none;border-radius:24px;box-shadow:1px 3px 13px 0px rgba(0, 0, 0, 0.05), 0px 1px 6px 0px rgba(0, 0, 0, 0.05)}.platform_services_wrapper .custom-card-icon:hover{box-shadow:0px 3px 10px 0px rgba(0, 0, 0, 0.15)}.dark .platform_services_wrapper .custom-card-icon{background:rgba(48, 48, 53, 1)}.dark .platform_services_wrapper .custom-card-icon>div:hover{background:rgba(255, 255, 255, 0.03)}.custom-card-icon a{background-color:#fff!important}.dark .custom-card-icon a{background-color:#303035!important;border-color:#303035!important}nav ul .navbar-link a,nav ul #topbar-cta-button a span{border-radius:50px!important;color:#fff}nav ul .navbar-link a:hover{color:#fff}#navbar>div.relative{width:100%;max-width:100%}#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div,#navbar>div.max-w-8xl.mx-auto.relative>div>div.hidden.lg\\:flex.px-12.h-12{max-width:92rem!important;margin:auto;padding-left:3rem;padding-right:3rem}#navbar>div.relative>div>div.relative,#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div>div.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center button{background-color:#31343c;width:100%;color:#ffffffcc!important;--tw-ring-color: #ffffffcc !important}.dark #navbar>div.relative>div>div.relative,.dark #navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div>div.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center button{background-color:#26262a}#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>button div{color:#fff!important}#navbar,#navbar>div,#navbar>div>div{overflow:visible!important}.hidden.lg\\:flex.px-12.h-12{position:relative!important;padding-left:1rem!important;padding-right:1rem!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100vw!important;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(96, 87, 247, 0.6) transparent}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar{height:6px}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-track{background:transparent;margin:0 1rem}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-thumb{background:rgba(96, 87, 247, 0.6);border-radius:3px}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-thumb:hover{background:rgba(96, 87, 247, 0.9)}html[data-current-path^=\"/legal\"]:not([data-current-path=\"/legal/agreement\"]):not([data-current-path=\"/legal/dpa\"]):not([data-current-path=\"/legal/dpa-inc\"]):not([data-current-path=\"/legal/dpa-il\"]) #content-area>#header>div>div>:not(h1){display:none!important}.nav-tabs{gap:1rem!important;flex-wrap:nowrap!important;width:max-content!important;min-width:100%!important;padding-left:2rem!important}.nav-tabs::after{content:\"\";min-width:1rem!important;flex-shrink:0!important;display:block!important}.nav-tabs-item{white-space:nowrap!important;flex-shrink:0!important}.nav-scroll-caret-left{background:linear-gradient(\n to right,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 1) 50%,\n rgba(255, 255, 255, 0) 100%\n )!important;color:#666!important}.nav-scroll-caret-right{background:linear-gradient(\n to left,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 1) 50%,\n rgba(255, 255, 255, 0) 100%\n )!important;color:#666!important}.dark .nav-scroll-caret-left{background:linear-gradient(to right, #26262a 0%, #26262a 50%, rgba(38, 38, 42, 0) 100%)!important;color:#999!important}.dark .nav-scroll-caret-right{background:linear-gradient(to left, #26262a 0%, #26262a 50%, rgba(38, 38, 42, 0) 100%)!important;color:#999!important}#content blockquote{border-color:#5282ff!important}@media screen and (max-width: 1486px){#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div{padding-left:0!important;padding-right:0!important}.homepage_wrapper>div{padding-left:2rem!important;padding-right:2rem!important}}@media screen and (max-width: 1024px){.homepage_wrapper>div{padding-left:0.5rem!important;padding-right:0.5rem!important}}.getting_started_wrapper .card{border-radius:24px;border-width:1px}img.inline{margin:0}img.icon[src*=\"/_assets/\"]{filter:invert(0.1)}.dark img.icon[src*=\"/_assets/\"]{filter:invert(0.96)}img.icon.keep-colors,.dark img.icon.keep-colors{filter:none}img.icon[src*=\"/_assets/sidebar/\"]{filter:brightness(0) invert(0.1)}.dark img.icon[src*=\"/_assets/sidebar/\"]{filter:none}img[src*=\"/_assets/icons/\"]{filter:brightness(0) invert(6%) sepia(58%) saturate(1475%) hue-rotate(195deg) brightness(103%) contrast(91%)}.dark img[src*=\"/_assets/icons/\"]{filter:none}.frame{width:fit-content;margin:auto}@media print{#navbar,#sidebar,#content-side-layout,#footer,#pagination,.feedback-toolbar,.media-print-none{display:none}#content-area{width:100%;margin-left:0;padding-left:.25rem}}.chat-assistant-floating-input{display:none!important}.sticky-table [data-table-wrapper]{--page-padding: 0px}.sticky-table table :is(th,td):first-child{position:sticky;left:0;z-index:1;background:rgb(var(--background-light))}.sticky-table table :is(th,td):first-child,.sticky-table table :is(th,td):first-child *{overflow-wrap:anywhere}html.dark .sticky-table table :is(th,td):first-child{background:rgb(var(--background-dark))}.compact-matrix table{width:max-content;min-width:0}.compact-matrix table :is(th,td){min-width:0;padding:8px;vertical-align:middle}.compact-matrix table :is(th,td):not(:first-child){width:auto;text-align:center;white-space:nowrap}.compact-matrix table :is(th,td):first-child{width:150px;white-space:normal}.compact-matrix table th code{padding-inline:2px}.merged-first-column table tbody tr{border-bottom-width:0}.merged-first-column table tbody td{border-bottom:1px solid rgb(var(--gray-100))}html.dark .merged-first-column table tbody td{border-bottom-color:#94a3b81a}.merged-first-column table tbody tr:has(+tr>td:first-child:empty)>td:first-child{border-bottom-color:transparent}.merged-first-column table :is(th,td):first-child{width:260px}.first-expanded-column table :is(th,td):first-child{width:24%;white-space:normal}"}],"page":{"pagePath":"kubernetes/connect","slug":"/kubernetes/connect","pageMetadata":{"title":"How to connect to Managed Service for Kubernetes® clusters using kubectl","sidebarTitle":"Connecting to clusters with kubectl","description":null,"href":"/kubernetes/connect"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Tab,Tabs,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use the public endpoint to connect to the cluster from the internet and the private endpoint to connect from a Compute virtual machine.`}),`\n`,_jsxs(_components.p,{children:[`The kubeconfig file uses your Nebius AI Cloud credentials. To let users sign in with an external identity provider instead, see `,_jsx(_components.a,{href:`/kubernetes/authentication/oidc-providers`,children:`Authentication with external OIDC providers in Managed Service for Kubernetes®`}),`.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`From the internet`,id:`from-the-internet`,children:[_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Generate a kubeconfig file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nebius`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mk8s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cluster`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get-credentials`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`cluster_I`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`D`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --external`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Use kubectl:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kubectl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cluster-info`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can limit access to the public endpoint and only allow certain IP addresses to connect to the cluster. For more information, see `,_jsx(_components.a,{href:`/kubernetes/networking/limit-access-to-public-endpoint`,children:`Access restriction for a public endpoint of a Managed Service for Kubernetes® cluster`}),`.`]})})]}),_jsxs(Tab,{title:`From a Compute VM`,children:[_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Requirements to connect to a VM with private IP address`})}),_jsxs(_components.p,{children:[`To connect to a Managed Service for Kubernetes cluster from a Compute VM by using a `,_jsx(_components.a,{href:`/compute/virtual-machines/network#private-ip`,children:`private IP address`}),` or from another cluster by using a private load balancer, both must be in the same `,_jsx(_components.a,{href:`/vpc/overview#network`,children:`network`}),` and `,_jsx(_components.a,{href:`/overview/regions`,children:`region`}),`. They can use different subnets, `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing`,children:`CIDR blocks`}),`, and `,_jsx(_components.a,{href:`/vpc/overview#routing-table`,children:`routing tables`}),`.`]})]}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Generate a kubeconfig file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nebius`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mk8s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cluster`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get-credentials`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`cluster_I`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`D`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --internal`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Use kubectl:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kubectl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cluster-info`})]}),`\n`]})})}),`\n`]}),`\n`]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How to connect to Managed Service for Kubernetes® clusters using kubectl","sidebarTitle":"Connecting to clusters with kubectl","description":null,"href":"/kubernetes/connect"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nebius-ai-cloud/15a5fe135c50f620/_assets/js/fix_index.js","/_mintlify/custom/nebius-ai-cloud/3370e3d5d76d525a/_assets/js/nav-tabs-scroll.js","/_mintlify/custom/nebius-ai-cloud/614ea6118f9493e4/_assets/js/onetrust.js","/_mintlify/custom/nebius-ai-cloud/d7115c46a3daa627/_assets/js/reo-dev.js"],"subdomain":"nebius-ai-cloud","siteName":"Nebius AI Cloud","title":"How to connect to Managed Service for Kubernetes® clusters using kubectl - Nebius AI Cloud","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T15:32:31.983Z","originalFileLocation":"kubernetes/connect.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to connect to Managed Service for Kubernetes® clusters using kubectl - Nebius AI Cloud\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nebius.com/kubernetes/connect\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nebius-ai-cloud.mintlify.site/_mintlify/api/og/v2?division=Networking\u0026amp;title=How+to+connect+to+Managed+Service+for+Kubernetes%C2%AE+clusters+using+kubectl\u0026amp;theme=387b6c74eb6a08dbde74605f\u0026amp;signature=73ddf9fd7489e80580228879d8c9226bc70266f1ee20b40b6f541590b1db3853\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How to connect to Managed Service for Kubernetes® clusters using kubectl - Nebius AI Cloud\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nebius-ai-cloud.mintlify.site/_mintlify/api/og/v2?division=Networking\u0026amp;title=How+to+connect+to+Managed+Service+for+Kubernetes%C2%AE+clusters+using+kubectl\u0026amp;theme=387b6c74eb6a08dbde74605f\u0026amp;signature=73ddf9fd7489e80580228879d8c9226bc70266f1ee20b40b6f541590b1db3853\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6057f7\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"p7dnMrsuoFlnyF9Oo0Ys0xPbeRCpQ9MedGsgi7nBOaI\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nebius.com/kubernetes/connect\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/kubernetes/connect.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nebius.com/#organization\",\"name\":\"Nebius AI Cloud\",\"url\":\"https://docs.nebius.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nebius.com#website\",\"name\":\"Nebius AI Cloud\",\"url\":\"https://docs.nebius.com\",\"publisher\":{\"@id\":\"https://docs.nebius.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nebius.com/kubernetes/connect#webpage\",\"url\":\"https://docs.nebius.com/kubernetes/connect\",\"name\":\"How to connect to Managed Service for Kubernetes® clusters using kubectl\",\"dateModified\":\"2026-11-18T15:32:31.983Z\",\"isPartOf\":{\"@id\":\"https://docs.nebius.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nebius.com/kubernetes/connect#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nebius.com/kubernetes/connect#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Managed Service for Kubernetes®\",\"item\":\"https://docs.nebius.com/kubernetes\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to connect to Managed Service for Kubernetes® clusters using kubectl\",\"item\":\"https://docs.nebius.com/kubernetes/connect\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.nebius.com/kubernetes/connect#article\",\"headline\":\"How to connect to Managed Service for Kubernetes® clusters using kubectl\",\"name\":\"How to connect to Managed Service for Kubernetes® clusters using kubectl\",\"url\":\"https://docs.nebius.com/kubernetes/connect\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nebius.com/kubernetes/connect#webpage\"},\"dateModified\":\"2026-11-18T15:32:31.983Z\",\"publisher\":{\"@id\":\"https://docs.nebius.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nebius.com#website\"}}]}\u003c/script>","agentPointerHref":"/kubernetes/connect.md","siteName":"Nebius AI Cloud","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Infrastructure","menu":[{"item":"Compute","pages":[{"group":"Virtual machines","pages":[{"title":"Compute","sidebarTitle":"Overview","href":"/compute"},{"group":"Getting started","pages":[{"title":"Getting started with Compute: Create your first Nebius AI Cloud virtual machine","sidebarTitle":"General work with VMs","href":"/compute/quickstart"},{"title":"Getting started with Compute: Host an LLM on Nebius AI Cloud","sidebarTitle":"Hosting an AI model","href":"/compute/quickstart-host-model"}]},{"group":"Types of virtual machines and GPUs","pages":[{"title":"Types of virtual machines and GPUs in Nebius AI Cloud","sidebarTitle":"All platforms and presets","href":"/compute/virtual-machines/types"},{"title":"How to find out platforms and presets available in a project","sidebarTitle":"Listing platforms and presets in a project","href":"/compute/virtual-machines/list-platforms"}]},{"group":"Creating virtual machines","pages":[{"title":"How to create a virtual machine in Nebius AI Cloud","sidebarTitle":"Regular VMs","href":"/compute/virtual-machines/create"},{"title":"Preemptible virtual machines","sidebarTitle":"Preemptible VMs","href":"/compute/virtual-machines/preemptible"}]},{"group":"Managing virtual machines","pages":[{"title":"How to update settings of a virtual machine in Nebius AI Cloud","sidebarTitle":"Updating VMs","href":"/compute/virtual-machines/update"},{"title":"Deleting a Compute virtual machine","sidebarTitle":"Deleting VMs","href":"/compute/virtual-machines/delete"},{"title":"How to access VM metadata","sidebarTitle":"Getting VM metadata","href":"/compute/virtual-machines/instance-metadata"},{"title":"Parameters of a virtual machine configuration in Compute","sidebarTitle":"Parameters of a VM configuration","href":"/compute/virtual-machines/params"}]},{"group":"Maintenance","pages":[{"title":"Maintenance of Compute virtual machines","sidebarTitle":"Overview","href":"/compute/virtual-machines/maintenance"},{"title":"Maintenance reasons in Nebius AI Cloud","sidebarTitle":"Maintenance reason codes","href":"/compute/virtual-machines/maintenance-reasons"},{"title":"How to stop and start Compute virtual machines","sidebarTitle":"Stopping and starting VMs","href":"/compute/virtual-machines/stop-start"},{"title":"Lifecycle of a Compute virtual machine","sidebarTitle":"Lifecycle and statuses of VMs","href":"/compute/virtual-machines/lifecycle"},{"title":"How to enable automatic security updates","sidebarTitle":"Enabling automatic security updates","href":"/compute/storage/automatic-updates"}]},{"group":"VM networking","pages":[{"title":"Private and public IP addresses of Compute virtual machines","sidebarTitle":"IP addresses","href":"/compute/virtual-machines/network"},{"title":"Tuning TCP window sizes on Linux virtual machines","sidebarTitle":"TCP window tuning","href":"/compute/virtual-machines/tcp-window-tuning"},{"title":"FQDN and hostname of a virtual machine","sidebarTitle":"FQDN and hostname","href":"/compute/virtual-machines/fqdn"},{"title":"How to generate SSH keys","sidebarTitle":"Generating SSH keys","href":"/compute/virtual-machines/ssh-keys"},{"title":"How to connect to virtual machines in Nebius AI Cloud","sidebarTitle":"Connecting to VMs","href":"/compute/virtual-machines/connect"},{"title":"Creating a jump server with WireGuard installed on it","sidebarTitle":"🧑🏫 Tutorial: Creating a WireGuard jump server","href":"/compute/virtual-machines/wireguard"}]},{"group":"Clustering VMs with InfiniBand™","pages":[{"title":"InfiniBand™ networking for Compute virtual machines with GPUs","sidebarTitle":"Overview","href":"/compute/clusters/gpu/index"},{"title":"How to test a GPU cluster physical state in Compute","sidebarTitle":"Testing InfiniBand connection","href":"/compute/clusters/gpu/test"},{"group":"InfiniBand topology","pages":[{"title":"InfiniBand™ topology of a GPU cluster","sidebarTitle":"Overview","href":"/compute/clusters/gpu/topology/index"},{"title":"Working with InfiniBand™ topology of a GPU cluster","sidebarTitle":"Working with topology","href":"/compute/clusters/gpu/topology/manage"}]}]},{"group":"Capacity","pages":[{"title":"Capacity advisor for GPU availability in Nebius AI Cloud","sidebarTitle":"Capacity advisor","href":"/compute/virtual-machines/capacity-advisor"},{"title":"Capacity reservations for Compute virtual machines","sidebarTitle":"Capacity reservations","href":"/compute/virtual-machines/reservations"}]},{"title":"Running AI workloads on VMs","sidebarTitle":"Running AI workloads on VMs","href":"/compute/clusters/ai-workloads"},{"group":"Storage on VMs","pages":[{"title":"Types of storage volumes in Compute","sidebarTitle":"Volume types","href":"/compute/storage/types"},{"title":"Managing Compute volumes","sidebarTitle":"Managing volumes","href":"/compute/storage/manage"},{"group":"Boot disk images","pages":[{"title":"Boot disk images for Compute virtual machines","sidebarTitle":"Overview","href":"/compute/storage/boot-disk-images"},{"title":"Creating custom boot disk images","sidebarTitle":"Creating custom disk images","href":"/compute/storage/custom-disk-images"},{"title":"Creating boot disk images with Packer","sidebarTitle":"Creating images with Packer","href":"/compute/storage/packer"},{"title":"Importing your own image into Compute","sidebarTitle":"Importing images","href":"/compute/storage/import-image"},{"title":"Recommendations for configuring custom images in Compute","sidebarTitle":"Recommendations for custom images","href":"/compute/storage/image-recommendations"}]},{"title":"Managing disk snapshots in Compute","sidebarTitle":"Disk snapshots","href":"/compute/storage/disk-snapshots"},{"title":"Attaching and mounting Compute volumes to VMs","sidebarTitle":"Attaching and mounting volumes to VMs","href":"/compute/storage/use"},{"title":"How to detach additional volumes from virtual machines","sidebarTitle":"Detaching volumes from VMs","href":"/compute/storage/detach-volume"},{"title":"Exporting data from Compute disks and shared filesystems","sidebarTitle":"Exporting data from volumes","href":"/compute/storage/export"},{"title":"Using local SSD disks on Compute virtual machines","sidebarTitle":"Using local SSD disks","href":"/compute/storage/local-disks"}]},{"group":"Monitoring","pages":[{"group":"Monitoring virtual machines","pages":[{"title":"Monitoring virtual machines in Nebius AI Cloud","sidebarTitle":"VM metrics","href":"/compute/monitoring/virtual-machines"},{"title":"Viewing serial logs of virtual machines","sidebarTitle":"VM serial logs","href":"/compute/monitoring/serial-logs"}]},{"title":"Monitoring volumes in Nebius AI Cloud","sidebarTitle":"Monitoring volumes","href":"/compute/monitoring/volumes"}]},{"group":"Troubleshooting","pages":[{"title":"Using the serial console for virtual machines in Nebius AI Cloud","sidebarTitle":"Serial console","href":"/compute/virtual-machines/serial-console"},{"title":"\"Not enough resources\" error for virtual machines in Nebius AI Cloud","sidebarTitle":"\"Not enough resources\" error","href":"/compute/virtual-machines/not-enough-resources"},{"title":"CUDA initialization error on virtual machines in Nebius AI Cloud","sidebarTitle":"CUDA initialization error","href":"/compute/virtual-machines/cuda-init-error"},{"title":"Charging for a virtual machine that was stopped by using Linux commands","sidebarTitle":"Charging for a VM stopped with Linux commands","href":"/compute/virtual-machines/stopped-with-linux-commands"},{"title":"How to collect diagnostic logs from Compute virtual machines","sidebarTitle":"Collecting diagnostic logs","href":"/compute/virtual-machines/logs"},{"title":"Virtual machine is unreachable due to a Docker subnet conflict","sidebarTitle":"Docker subnet conflict","href":"/compute/virtual-machines/docker-subnet-conflict"},{"title":"How to inspect a VM and attach its boot disk to another VM","sidebarTitle":"Inspect a boot disk from another VM","href":"/compute/virtual-machines/inspect-boot-disk"}]},{"group":"Resources","pages":[{"title":"Quotas in Compute","sidebarTitle":"Quotas","href":"/compute/resources/quotas-limits"},{"title":"Compute pricing in Nebius AI Cloud","sidebarTitle":"Pricing","href":"/compute/resources/pricing"}]}]},{"group":"Slurm and Soperator in Nebius AI Cloud","pages":[{"title":"Slurm and Soperator in Nebius AI Cloud","sidebarTitle":"Overview","href":"/slurm-soperator/index"},{"group":"About Slurm and Soperator","pages":[{"title":"Combining Slurm and Kubernetes by using Soperator","sidebarTitle":"Why Slurm and Soperator?","href":"/slurm-soperator/overview/why-slurm-soperator"},{"title":"Soperator cluster architecture","sidebarTitle":"Soperator cluster architecture","href":"/slurm-soperator/overview/architecture"}]},{"title":"Deploying Soperator clusters","sidebarTitle":"Deployment methods","href":"/slurm-soperator/deploy/overview"},{"group":"Capacity management","pages":[{"title":"Ephemeral nodes in Soperator","sidebarTitle":"Ephemeral nodes","href":"/slurm-soperator/capacity/ephemeral-nodes"},{"title":"Moving capacity between training and inference workloads","sidebarTitle":"Moving capacity","href":"/slurm-soperator/capacity/move-capacity"}]},{"group":"Managed Service for Soperator","pages":[{"title":"Creating and deleting Soperator clusters in Managed Service for Soperator","sidebarTitle":"Creating and deleting clusters","href":"/slurm-soperator/managed-soperator/manage"},{"title":"Stopping and starting Soperator clusters in Managed Service for Soperator","sidebarTitle":"Stopping and starting clusters","href":"/slurm-soperator/managed-soperator/stop-start"},{"title":"Managed Service for Soperator service nodes","sidebarTitle":"Service nodes","href":"/slurm-soperator/managed-soperator/service-nodes"}]},{"title":"Connecting to login and worker nodes","sidebarTitle":"Connecting to login and worker nodes","href":"/slurm-soperator/clusters/connect"},{"group":"Jobs","pages":[{"title":"Running Slurm batch jobs","sidebarTitle":"Running batch jobs","href":"/slurm-soperator/jobs/index"},{"group":"Running containerized jobs","pages":[{"title":"Running jobs in containers in Soperator clusters","sidebarTitle":"Overview","href":"/slurm-soperator/jobs/containers/index"},{"title":"Running jobs in containers by using Enroot and Pyxis","sidebarTitle":"Enroot and Pyxis","href":"/slurm-soperator/jobs/containers/pyxis-enroot"},{"title":"Running jobs in containers by using Apptainer","sidebarTitle":"Apptainer","href":"/slurm-soperator/jobs/containers/apptainer"},{"title":"Running jobs in containers by using Docker","sidebarTitle":"Docker","href":"/slurm-soperator/jobs/containers/docker"}]},{"title":"Managing jobs in Soperator clusters","sidebarTitle":"Managing jobs and queue","href":"/slurm-soperator/jobs/manage"}]},{"group":"Performance and reliability","pages":[{"title":"Running the all-reduce NCCL performance test in Soperator clusters","sidebarTitle":"Running the all-reduce NCCL test","href":"/slurm-soperator/jobs/examples/nccl-all-reduce"},{"title":"Health management of worker nodes in Soperator clusters","sidebarTitle":"Health management of worker nodes","href":"/slurm-soperator/worker-nodes-health"}]},{"title":"Downloading data in Soperator clusters","sidebarTitle":"Downloading data","href":"/slurm-soperator/storage/download-data"},{"title":"Managing file access in a Soperator cluster","sidebarTitle":"Managing file access","href":"/slurm-soperator/storage/manage-access"},{"title":"Managing users in a Soperator cluster","sidebarTitle":"Managing users","href":"/slurm-soperator/users/manage"},{"group":"Monitoring","pages":[{"title":"How to monitor job and node statuses in a Soperator cluster","sidebarTitle":"Monitoring job and node statuses","href":"/slurm-soperator/monitoring/statuses"},{"title":"Monitoring metrics of Soperator clusters","sidebarTitle":"Monitoring metrics","href":"/slurm-soperator/monitoring/metrics"},{"title":"Viewing logs of Soperator clusters","sidebarTitle":"Viewing logs","href":"/slurm-soperator/monitoring/logs"}]},{"group":"Resources","pages":[{"title":"Quotas in Managed Service for Soperator","sidebarTitle":"Managed Soperator quotas","href":"/slurm-soperator/managed-soperator/resources/quotas"},{"title":"Pricing in Managed Service for Soperator","sidebarTitle":"Managed Soperator pricing","href":"/slurm-soperator/managed-soperator/resources/pricing"}]}]},{"group":"Managed Service for Kubernetes®","pages":[{"title":"Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/index"},{"title":"How to get started with Managed Service for Kubernetes®: Create your first cluster for Kubernetes","sidebarTitle":"Getting started","href":"/kubernetes/quickstart"},{"title":"Components in Managed Service for Kubernetes®","sidebarTitle":"Cluster components","href":"/kubernetes/components"},{"group":"Kubernetes versions","pages":[{"title":"Kubernetes® versions in Managed Service for Kubernetes","sidebarTitle":"Overview","href":"/kubernetes/versions"},{"title":"Setting and upgrading Kubernetes® versions in Managed Service for Kubernetes","sidebarTitle":"Managing versions","href":"/kubernetes/manage-versions"},{"title":"Kubernetes® version deprecation policy in Managed Service for Kubernetes","sidebarTitle":"Version deprecation","href":"/kubernetes/version-deprecation"}]},{"group":"Working with clusters and nodes","pages":[{"title":"How to create and modify Managed Service for Kubernetes® clusters","sidebarTitle":"Creating and modifying clusters","href":"/kubernetes/clusters/manage"},{"title":"Creating and modifying Managed Service for Kubernetes® node groups","sidebarTitle":"Creating and modifying node groups","href":"/kubernetes/node-groups/manage"},{"title":"kubeReserved values on worker nodes in Managed Service for Kubernetes®","sidebarTitle":"kubeReserved values on worker nodes","href":"/kubernetes/node-groups/kube-reserved"},{"title":"Capacity reservations for Managed Service for Kubernetes® node groups","sidebarTitle":"Capacity reservations for node groups","href":"/kubernetes/node-groups/reservations"}]},{"group":"Maintenance","pages":[{"title":"Maintenance in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/maintenance/index"},{"title":"Managing maintenance in Managed Service for Kubernetes®","sidebarTitle":"Managing maintenance","href":"/kubernetes/maintenance/manage"},{"title":"Health checks and automatic recovery of Managed Service for Kubernetes® nodes","sidebarTitle":"Health checks and automatic recovery of nodes","href":"/kubernetes/maintenance/health-checks"},{"title":"How to enable or disable health checks in a Managed Service for Kubernetes® cluster","sidebarTitle":"Enabling or disabling health checks","description":null,"href":"/kubernetes/maintenance/enable-disable-health-checks"}]},{"group":"Networking","pages":[{"title":"How to connect to Managed Service for Kubernetes® clusters using kubectl","sidebarTitle":"Connecting to clusters with kubectl","href":"/kubernetes/connect"},{"title":"Network requirements for Managed Service for Kubernetes® clusters","sidebarTitle":"Network requirements","description":null,"href":"/kubernetes/networking/requirements"},{"title":"Access restriction for a public endpoint of a Managed Service for Kubernetes® cluster","sidebarTitle":"Access restriction for the cluster's public endpoint","href":"/kubernetes/networking/limit-access-to-public-endpoint"},{"group":"Security groups","pages":[{"title":"Security groups in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/networking/security-groups"},{"title":"How to attach security groups to a node group in Managed Service for Kubernetes®","sidebarTitle":"Attaching security groups","href":"/kubernetes/networking/manage-security-groups"}]},{"title":"Exposing services with load balancers","sidebarTitle":"Exposing services with load balancers","href":"/kubernetes/clusters/load-balancer"},{"title":"How to use a non-default subnet for Managed Service for Kubernetes® clusters and node groups","sidebarTitle":"Using a non-default subnet","href":"/kubernetes/networking/non-default-subnet"},{"title":"How to create a fixed set of public IP addresses for a node group","sidebarTitle":"Assigning public IP addresses from a fixed set","href":"/kubernetes/networking/defined-ips"},{"title":"How to convert a dynamically assigned public IP address to a reusable allocation","sidebarTitle":"Converting dynamic IP addresses to reusable allocations","href":"/kubernetes/networking/dynamic-to-static"},{"title":"Networking add-ons in Managed Service for Kubernetes®","sidebarTitle":"CoreDNS and Cilium add-ons","href":"/kubernetes/networking/add-ons"},{"title":"Setting up NodeLocal DNSCache with Cilium network policy controller in Managed Service for Kubernetes®","sidebarTitle":"🧑🏫 Tutorial: Setting up NodeLocal DNSCache with Cilium network policy controller","href":"/kubernetes/networking/nodelocal-dns-cache"}]},{"group":"Access from identity providers","pages":[{"title":"Authentication with external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/authentication/oidc-providers"},{"title":"How to configure external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Configuring OIDC providers","href":"/kubernetes/authentication/oidc-authentication"},{"title":"Troubleshooting authentication with external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Troubleshooting","href":"/kubernetes/authentication/troubleshoot-oidc-providers"},{"title":"Using an OIDC public endpoint in Managed Service for Kubernetes® clusters","sidebarTitle":"Using an OIDC endpoint","href":"/kubernetes/networking/oidc-public-endpoint"}]},{"group":"Workloads","pages":[{"title":"Pulling images from Container Registry for workloads in Managed Service for Kubernetes® clusters","sidebarTitle":"Pulling images from Container Registry","href":"/kubernetes/workloads/images-container-registry"}]},{"group":"GPUs and ML/AI workloads","pages":[{"title":"Working with GPUs in the Managed Service for Kubernetes®","sidebarTitle":"Setting up GPUs","href":"/kubernetes/gpu/set-up"},{"title":"Interconnecting GPUs in Managed Service for Kubernetes® clusters using InfiniBand™","sidebarTitle":"Interconnecting GPUs with InfiniBand™","href":"/kubernetes/gpu/clusters"},{"title":"Dynamic resource allocation in Managed Service for Kubernetes®","sidebarTitle":"Dynamic resource allocation","href":"/kubernetes/gpu/dynamic-resource-allocation"},{"title":"Topology-aware scheduling for GPU workloads in Managed Service for Kubernetes®","sidebarTitle":"Topology-aware scheduling","href":"/kubernetes/gpu/topology-aware-scheduling"},{"title":"Running NCCL tests in a Managed Service for Kubernetes® cluster with InfiniBand™-connected GPUs","sidebarTitle":"🧑🏫 Tutorial: Running NCCL tests for InfiniBand","href":"/kubernetes/gpu/nccl-test"},{"title":"Managing AI workloads across Managed Service for Kubernetes® clusters with SkyPilot","sidebarTitle":"🧑🏫 Tutorial: Orchestration with SkyPilot","href":"/kubernetes/skypilot"}]},{"group":"Storage","pages":[{"title":"Mounting disks to Pods in a Managed Service for Kubernetes® cluster","sidebarTitle":"🧑🏫 Tutorial: Mounting disks to Pods","href":"/kubernetes/storage/disk-over-csi"},{"title":"Mounting shared filesystems to Pods in a Managed Service for Kubernetes® cluster","sidebarTitle":"🧑🏫 Tutorial: Mounting shared filesystems to Pods","href":"/kubernetes/storage/filesystem-over-csi"}]},{"title":"Deploying and deleting applications for Managed Service for Kubernetes®","sidebarTitle":"Applications for Managed Kubernetes","href":"/kubernetes/manage-applications"},{"group":"Observability","pages":[{"title":"Monitoring clusters and nodes in Managed Service for Kubernetes®","sidebarTitle":"Monitoring","href":"/kubernetes/monitoring"},{"title":"Logs in Managed Service for Kubernetes®","sidebarTitle":"Logs","href":"/kubernetes/logs"}]},{"group":"Optimizing nodes","pages":[{"title":"Autoscaling in Managed Service for Kubernetes","sidebarTitle":"Autoscaling","href":"/kubernetes/node-groups/autoscaling"},{"title":"Moving workload from the existing node group","sidebarTitle":"Moving workload","href":"/kubernetes/node-groups/moving-workload"}]},{"group":"Troubleshooting","pages":[{"title":"\"Unable to allocate CIDR from the pool\" error","sidebarTitle":"Unable to allocate CIDR from the pool error","href":"/kubernetes/troubleshooting/cidr-allocation-error"},{"title":"How to collect diagnostic logs from Managed Service for Kubernetes® nodes","sidebarTitle":"Collecting diagnostic logs","href":"/kubernetes/troubleshooting/logs"}]},{"group":"Resources","pages":[{"title":"Managed Service for Kubernetes® quotas and constraints","sidebarTitle":"Quotas and constraints","href":"/kubernetes/resources/quotas-limits"},{"title":"Pricing in Managed Service for Kubernetes®","sidebarTitle":"Pricing","href":"/kubernetes/resources/pricing"}]}]}]},{"item":"Storage","pages":[{"title":"Storage","href":"/object-storage"}]},{"item":"Network","pages":[{"title":"Network","href":"/vpc"}]}]},{"tab":"AI services","pages":[{"title":"AI services","href":"/ai-services"}]},{"tab":"Observability","pages":[{"title":"Observability","href":"/observability"}]},{"tab":"Management","pages":[{"title":"Management","href":"/signup-billing"}]},{"tab":"Security and cryptography","pages":[{"title":"Security and cryptography","href":"/security/encryption"}]},{"tab":"Developer tools","pages":[{"title":"Developer tools","href":"/developer-tools"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Managed Service for Apache Spark™","hidden":true,"pages":[{"title":"Managed Service for Apache Spark™","href":"/spark"}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal"}]}]},"basePath":"","title":"How to connect to Managed Service for Kubernetes® clusters using kubectl - Nebius AI Cloud","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}