1 개요[ | ]
- 쿠버네티스 Resource Quota
- Kubernetes 리소스 쿼터
- 네임스페이스 당 리소스 총소비량을 제한하는 제약
- 프로젝트 내에서 리소스들이 소비할 수 있는 컴퓨팅 리소스 총량 뿐만 아니라, 유형에 따라 하나의 네임스페이스 내에 생성할 수 있는 객체의 수량을 제한할 수 있다.
2 예시1: 컴퓨트 리소스[ | ]
yaml
Copy
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-quota
namespace: ns01
spec:
hard:
requests.cpu: '1'
requests.memory: 1Gi
limits.cpu: '2'
limits.memory: 2Gi
3 예시2: 리소스 최대 개수[ | ]
yaml
Copy
apiVersion: v1
kind: ResourceQuota
metadata:
name: object-counts
namespace: ns01
spec:
hard:
configmaps: '10'
persistentvolumeclaims: '4'
replicationcontrollers: '20'
secrets: '10'
services: '10'
services.loadbalancers: '2'
4 예시3: 스토리지 클래스[ | ]
yaml
Copy
apiVersion: v1
kind: ResourceQuota
metadata:
name: storage-class-quota
namespace: ns01
spec:
hard:
requests.storage: 100Gi
persistentvolumeclaims: 100
gold.storage-class.kubernetes.io/requests.storage: 3Gi
gold.storage-class.kubernetes.io/persistentvolumeclaims: 5
silver.storage-class.kubernetes.io/requests.storage: 2Gi
silver.storage-class.kubernetes.io/persistentvolumeclaims: 3
bronze.storage-class.kubernetes.io/requests.storage: 1Gi
bronze.storage-class.kubernetes.io/persistentvolumeclaims: 1
5 같이 보기[ | ]
6 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.