新增说明及示例文件

This commit is contained in:
2023-12-15 16:39:01 +08:00
committed by huty
parent 823b19c3f0
commit 3445c145aa
71 changed files with 4048 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# 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

View File

@@ -0,0 +1,22 @@
apiVersion: v1
kind: LimitRange
metadata:
name: limit-range-example
namespace: demo
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