스케일
스케일 (Scale)
이 페이지는 리소스에 대한 스케일링 요청을 나타내는 Scale 객체를 설명해요. Deployment, ReplicaSet 등의 스케일 하위 리소스를 다룰 때 사용되는 구조체랍니다.
본문
Scale은 리소스에 대한 스케일링 요청을 나타냅니다.
apiVersion: autoscaling/v1
import "k8s.io/api/autoscaling/v1"
Scale
Scale은 리소스에 대한 스케일링 요청을 나타냅니다.
| Field | Description |
|---|---|
apiVersion |
|
| string | APIVersion은 이 객체 표현의 버전 스키마를 정의합니다. 서버는 인식된 스키마를 최신 내부 값으로 변환해야 하며, 인식되지 않은 값은 거부할 수 있습니다. 자세한 내용: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
kind |
|
| string | Kind는 이 객체가 나타내는 REST 리소스를 나타내는 문자열 값입니다. 서버는 클라이언트가 요청을 제출하는 엔드포인트에서 이를 추론할 수 있습니다. 업데이트할 수 없습니다. CamelCase 형식입니다. 자세한 내용: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
metadata |
|
| ObjectMeta | metadata는 표준 객체 메타데이터입니다. 자세한 내용: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. |
spec |
|
| ScaleSpec | spec은 스케일의 동작을 정의합니다. 자세한 내용: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. |
status |
|
| ScaleStatus | status는 스케일의 현재 상태입니다. 자세한 내용: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. 읽기 전용입니다. |
ScaleSpec
ScaleSpec은 스케일 하위 리소스의 속성을 설명합니다.
| Field | Description |
|---|---|
replicas |
|
| integer | replicas는 스케일링 대상 객체의 원하는 인스턴스 수입니다. |
ScaleStatus
ScaleStatus는 스케일 하위 리소스의 현재 상태를 나타냅니다.
| Field | Description |
|---|---|
replicas ***** |
|
| integer | replicas는 스케일링 대상 객체에서 관찰된 실제 인스턴스 수입니다. |
selector |
|
| string | selector는 replicas 수와 일치해야 하는 포드에 대한 라벨 쿼리입니다. 이는 클라이언트의 내부 검사를 피하기 위해 문자열 형식으로 표현된 라벨 셀렉터와 동일합니다. 문자열은 쿼리 매개변수 구문과 같은 형식입니다. 라벨 셀렉터에 대한 자세한 내용: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |