kubernetes-yaml/description/Strategy/LimitRanges/description.yml

36 lines
749 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# LimitRange限制范围说明官方文档https://v1-22.docs.kubernetes.io/zh/docs/concepts/policy/limit-range
# API 版本
apiVersion: v1
# 资源类型
kind: LimitRange
# 元数据
metadata:
## 名称
name: 此 LimitRange 的名称
## 命名空间
namespace: 此 LimitRange 所属的命名空间
# 数据
spec:
## 限制详情
limits:
### 默认值
- default:
cpu: 500m
memory: 1Gi
### 默认请求值
defaultRequest:
cpu: 500m
memory: 1Gi
### 最大值
max:
cpu: 800m
memory: 2Gi
storage: 5Gi
### 最小值
min:
cpu: 200m
memory: 500Mi
storage: 1Gi
### 限制类型
type: Container