이 가이드는 API 명세를 기반으로 자동 생성했습니다.
VPC 환경에서 이용 가능합니다.
Ncloud API 표준 규격을 적용한 API입니다.
Ncloud Kubernetes Service는 컨테이너 애플리케이션을 배포·운영할 수 있는 관리형 쿠버네티스 클러스터를 제공하는 네이버 클라우드 플랫폼의 서비스입니다.
Ncloud Kubernetes Service 서비스에서는 클러스터, 노드풀, 워커 노드, IAM 액세스 엔트리, Pod Identity 매핑, 애드온 관리 기능에 대한 API를 RESTful 형태로 제공합니다.
- 클러스터·노드풀·워커 노드·애드온의 비동기 작업(생성/변경/삭제/업그레이드 등)은
202 Accepted와 Operation 객체를 반환하며, 대상 리소스별 경로로 완료 여부를 폴링합니다 — 클러스터 작업은GET /clusters/operations/{operationId}, 노드풀 작업은GET /clusters/{clusterId}/node-pools/operations/{operationId}, 워커 노드 작업은GET /clusters/{clusterId}/node-pools/{nodePoolId}/nodes/operations/{operationId}, 애드온 작업은GET /clusters/{clusterId}/addons/operations/{operationId}입니다. 작업 이력도 같은 리소스별/operations목록에서 조회하며, 클러스터 작업 목록은filter=metadata.clusterId = "<clusterId>"로 클러스터 하나로 좁힐 수 있습니다. 완료된 Operation은 최소 30일간 보관됩니다. - 목록 API는 커서 기반 페이지네이션(
pageSize,nextToken)을 사용합니다. - 사용자 리소스(cluster, node-pool, node, access-entry, pod-identity-association, addon, operation)의 식별자는
id필드이며 값은 UUID입니다. 카탈로그성 읽기 전용 리소스(addon-configs, k8s-versions, server-images, server-products)는 이름·버전을 자연 키로 사용합니다. - 응답 메시지의 기본 언어는 영어이며,
x-ncp-lang요청 헤더(BCP 47)로 한국어 등 다국어를 지원합니다. - 응답 헤더
x-ncp-request-id는 요청마다 서버가 만드는 요청 추적 ID(UUID)입니다. API Gateway가 직접 반환한 응답(인증 실패·요청 한도 초과 등)에는 포함되지 않습니다.
Ncloud Kubernetes Service 공통 설정
Ncloud Kubernetes Service API에서 공통으로 사용하는 요청 형식과 응답 형식을 설명합니다.
요청
공통 요청 형식을 설명합니다.
API URL
요청 API URL은 다음과 같습니다.
| 리전 | API URL |
|---|---|
| 한국 | https://kr-nks.apigw.ntruss.com |
| 싱가포르 | https://sg-nks.apigw.ntruss.com |
| 일본 | https://jp-nks.apigw.ntruss.com |
요청 헤더
요청 헤더에 대한 설명은 다음과 같습니다.
| 필드 | 필수 여부 | 설명 |
|---|---|---|
x-ncp-apigw-timestamp |
Required | 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간(밀리초)
|
x-ncp-iam-access-key |
Required | 네이버 클라우드 플랫폼에서 발급받은 Access Key
|
x-ncp-apigw-signature-v2 |
Required | 네이버 클라우드 플랫폼에서 발급받은 Access Key에 맵핑되는 Secret Key 및 HMAC 암호화 알고리즘(HmacSHA256)으로 요청 정보를 암호화한 후 Base64로 인코딩한 서명
|
x-ncp-lang |
Optional | 응답 메시지 언어 (BCP 47 언어 태그). 지원 언어는 ko-KR(한국어)와 en-US(영어, 기본값)이며, 그 밖의 값은 영어로 응답합니다.작업(Operation)의 사유·조치 문구( metadata.message, metadata.requiredAction.message, error.message)가 이 언어로 제공됩니다.오류 응답( ErrorResponse)의 message는 현재 영어로만 제공합니다. |
응답
공통 응답 형식을 설명합니다.
응답 헤더
응답 헤더에 대한 설명은 다음과 같습니다.
| 필드 | 필수 여부 | 설명 |
|---|---|---|
x-ncp-request-id |
- | 요청 추적 ID (200, 201, 202, 204, 400, 401, 403, 404, 409, 415, 500, 502, 503 응답) |
응답 바디
API가 반환하는 공통 응답 바디는 다음과 같습니다.
| 응답 | 사용하는 API | 설명 |
|---|---|---|
| 기본 오류 응답 | 모든 API | 호출에 실패하면 error에 오류 정보를 담아 반환 |
| Operation 기반 LRO API 응답 | 작업을 비동기로 처리하는 API | 호출하면 202 Accepted와 함께 작업 정보(Operation)를 반환 |
| Operation 조회 API 응답 | 비동기 작업의 상태를 조회하는 API | 호출하면 작업 상태와 결과를 담은 작업 정보(Operation)를 반환 |
응답 상태 코드
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 200 | - | - | 각 API 문서의 응답 상태 코드를 참조 |
| 201 | - | - | 각 API 문서의 응답 상태 코드를 참조 |
| 202 | - | - | 각 API 문서의 응답 상태 코드를 참조 |
| 204 | - | - | 각 API 문서의 응답 상태 코드를 참조 |
| 400 | InvalidParameter |
The specified parameter is invalid. |
각 API 문서의 응답 상태 코드를 참조 |
| 400 | InvalidNextToken |
You have provided an invalid pagination token in your request. |
각 API 문서의 응답 상태 코드를 참조 |
| 400 | BadRequest |
The request is malformed or contains an error such as an invalid parameter value or a missing required parameter. |
각 API 문서의 응답 상태 코드를 참조 |
| 400 | InvalidState |
The request cannot be processed in the current state. |
각 API 문서의 응답 상태 코드를 참조 |
| 400 | PodIdentityAssociationLimitExceeded |
The pod identity association limit was exceeded. |
각 API 문서의 응답 상태 코드를 참조 |
| 400 | InvalidOperation |
The specified operation is invalid. |
각 API 문서의 응답 상태 코드를 참조 |
| 401 | Unauthorized |
Authentication credentials are missing or invalid. |
인증 헤더가 없거나, 액세스 키가 유효하지 않거나, 서명이 요청 내용과 일치하지 않습니다. 액세스 키 상태와 서명 생성 방식을 확인하십시오. |
| 403 | Forbidden |
You do not have sufficient permissions to perform this action. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | ClusterNotFound |
The cluster does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | NodePoolNotFound |
The node pool does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | NodeNotFound |
The worker node does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | AccessEntryNotFound |
The access entry does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | PodIdentityAssociationNotFound |
The pod identity association does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | AddonNotFound |
The add-on does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | AddonConfigNotFound |
The add-on config does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | AddonConfigVersionNotFound |
The add-on config version does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 404 | OperationNotFound |
The operation does not exist. |
각 API 문서의 응답 상태 코드를 참조 |
| 409 | AlreadyExists |
A resource with the requested identifier already exists. |
각 API 문서의 응답 상태 코드를 참조 |
| 409 | ResourceNotReady |
The resource is not ready. |
각 API 문서의 응답 상태 코드를 참조 |
| 409 | ConcurrentAccess |
The resource is being modified by another request. Retry your request later. |
각 API 문서의 응답 상태 코드를 참조 |
| 409 | ResourceInUse |
The specified resource is in use. |
각 API 문서의 응답 상태 코드를 참조 |
| 415 | UnsupportedMediaType |
The content type of the request body is not supported. |
각 API 문서의 응답 상태 코드를 참조 |
| 429 | RateLimitExceeded |
The request exceeded the rate limit. Retry your request later. |
요청 빈도 제한을 초과했습니다. retry-after 헤더가 안내하는 시간 이후 재시도하십시오. |
| 429 | ResourceQuotaExceeded |
The resource quota has been exceeded. Delete unused resources or request a quota increase. |
각 API 문서의 응답 상태 코드를 참조 |
| 500 | InternalServerError |
The request processing has failed because of an unknown error, exception, or failure. |
처리 중 예기치 않은 오류가 발생했습니다. 반복되면 응답 헤더의 x-ncp-request-id 값과 함께 고객 지원에 문의하십시오. |
| 502 | BadGateway |
The server received an invalid response from an upstream service. Retry your request later. |
각 API 문서의 응답 상태 코드를 참조 |
| 503 | ServiceUnavailable |
The service is currently unavailable. Retry your request later. |
API 서버 점검이나 일시적인 과부하로 요청을 받을 수 없습니다. 잠시 후 재시도하십시오. |
네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.
Ncloud Kubernetes Service API
Ncloud Kubernetes Service 서비스에서 제공하는 API에 대한 설명은 다음과 같습니다.
Cluster
Cluster 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| createCluster | 클러스터 생성 |
| getCluster | 클러스터 조회 |
| getClusterControlPlaneLogging | 컨트롤 플레인 로깅 설정 조회 |
| getClusterIpAcl | IP ACL 조회 |
| getClusterLbSubnet | 로드밸런서 서브넷 설정 조회 |
| getClusterOidc | OIDC 설정 조회 |
| getClusterSecretEncryption | Secret 암호화(KMS) 설정 조회 |
| getClusterTerminationProtection | 반납 보호 설정 조회 |
| listClusters | 클러스터 목록 조회 |
| updateClusterIpAcl | IP ACL 설정 변경 |
| updateClusterOidc | OIDC 설정 변경 |
| updateClusterTerminationProtection | 반납 보호 설정 변경 |
| updateClusterControlPlaneLogging | 컨트롤 플레인 로깅 설정 변경 |
| updateClusterLbSubnet | 로드밸런서 서브넷 설정 변경 |
| deleteCluster | 클러스터 삭제 |
| addClusterSubnets | 클러스터 서브넷 추가 |
| enableClusterSecretEncryption | Secret 암호화(KMS) 활성화 |
| upgradeCluster | 클러스터 버전 업그레이드 |
Node Pool
Node Pool 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| createNodePool | 노드풀 생성 |
| getNodePool | 노드풀 조회 |
| getNodePoolInitScript | 노드풀 Init Script 연결 조회 |
| listNodePools | 노드풀 목록 조회 |
| updateNodePoolInitScript | 노드풀 Init Script 연결 변경 |
| updateNodePool | 노드풀 부분 수정 |
| deleteNodePool | 노드풀 삭제 |
| addNodePoolSubnets | 노드풀 서브넷 추가 |
| upgradeNodePool | 노드풀 버전 업그레이드 |
Node
Node 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| getNode | 워커 노드 조회 |
| listNodes | 워커 노드 목록 조회 |
| deleteNode | 워커 노드 반납 |
Access Entry
Access Entry 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| createAccessEntry | 액세스 엔트리 생성 |
| getAccessEntry | 액세스 엔트리 조회 |
| listAccessEntries | 액세스 엔트리 목록 조회 |
| updateAccessEntry | 액세스 엔트리 부분 수정 |
| deleteAccessEntry | 액세스 엔트리 삭제 |
Pod Identity Association
Pod Identity Association 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| createPodIdentityAssociation | Pod Identity 매핑 생성 |
| getPodIdentityAssociation | Pod Identity 매핑 조회 |
| listPodIdentityAssociations | Pod Identity 매핑 목록 조회 |
| deletePodIdentityAssociation | Pod Identity 매핑 삭제 |
Cluster Add-on
Cluster Add-on 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| createAddon | 애드온 설치 |
| getAddon | 애드온 조회 |
| listAddons | 설치된 애드온 목록 조회 |
| updateAddon | 애드온 부분 수정 |
| deleteAddon | 애드온 삭제 |
| batchCreateAddons | 애드온 일괄 설치 |
| cancelAddonCanaryUpgrade | 애드온 Canary 업그레이드 취소 |
| completeAddonCanaryUpgrade | 애드온 Canary 업그레이드 확정 |
| startAddonCanaryUpgrade | 애드온 Canary 업그레이드 시작 |
Options
Add-on Catalog
Add-on Catalog 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| getAddonConfig | 애드온 카탈로그 조회 |
| getAddonConfigVersion | 애드온 버전 상세 조회 |
| listAddonConfigVersions | 애드온 버전 목록 조회 |
| listAddonConfigs | 애드온 카탈로그 목록 조회 |
Kubernetes Version
Kubernetes Version 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| listK8sVersions | 지원 쿠버네티스 버전 목록 조회 |
Server Image
Server Image 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| listServerImages | 서버 이미지 목록 조회 |
Server Product
Server Product 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| listServerProducts | 서버 상품 목록 조회 |
Operation
Operation 관련 API에 대한 설명은 다음과 같습니다.
| API | 설명 |
|---|---|
| getAddonOperation | 애드온 작업(Operation) 조회 |
| getNodeOperation | 워커 노드 작업(Operation) 조회 |
| getNodePoolOperation | 노드풀 작업(Operation) 조회 |
| getOperation | 작업(Operation) 조회 |
| listAddonOperations | 애드온 작업(Operation) 목록 조회 |
| listNodeOperations | 워커 노드 작업(Operation) 목록 조회 |
| listNodePoolOperations | 노드풀 작업(Operation) 목록 조회 |
| listOperations | 작업(Operation) 목록 조회 |
Ncloud Kubernetes Service 연관 리소스
Ncloud Kubernetes Service API에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다.
-
Ncloud Kubernetes Service API 사용 방법
- API 개요: 네이버 클라우드 플랫폼에서 발급받은 Access Key, Secret Key 발급 및 확인, 요청 헤더에 필요한 서명 생성 방법
- Sub Account 사용 가이드: 서브 계정의 Access Key 발급 및 확인 방법
- API Gateway 사용 가이드: 요청 헤더에 필요한 API Key 확인 방법
-
Ncloud Kubernetes Service 서비스 사용 방법
- Ncloud Kubernetes Service 사용 가이드: 네이버 클라우드 플랫폼 콘솔에서 Ncloud Kubernetes Service 사용하는 방법
- Ncloud 사용 환경 가이드: VPC, Classic 환경 및 지원 여부에 대한 가이드
- 요금 소개, 특징, 상세 기능: Ncloud Kubernetes Service의 요금 체계, 특징, 상세 기능 요약
- 서비스 최신 소식: Ncloud Kubernetes Service 관련 최신 소식
- 자주 하는 질문: Ncloud Kubernetes Service 사용자들이 자주 하는 질문
- 문의하기: 사용 가이드를 통해서도 궁금증이 해결되지 않는 경우 직접 문의