更新时间:2025-12-24 GMT+08:00
指定实例类型
为了更好地满足低成本或性能稳定的需求,CCI提供了多种实例类型以满足不同的业务需求。
实例类型说明
配置示例
apiVersion: cci/v2
kind: Pod
metadata:
annotations:
resource.cci.io/pod-size-specs: 2.00_4.0
resource.cci.io/instance-type: general-computing # 指定实例类型为通用型
labels:
app: nginx
name: 'test1'
namespace: test
spec:
containers:
- name: nginx
image: nginx:latest
resources:
limits:
cpu: 2000m
memory: 4096Mi
requests:
cpu: 2000m
memory: 4096Mi
ports:
- containerPort: 80
protocol: TCP
imagePullSecrets:
- name: imagepull-secret
|
参数 |
是否必填 |
参数类型 |
描述 |
|---|---|---|---|
|
resource.cci.io/instance-type |
是 |
String |
参数解释:指定Pod的实例类型。 支持的值和对应的实例类型
|