
# 指定多种实例类型
为了避免资源不足的场景，如果您的业务对性能要求有一定容忍度，可以指定多个实例类型来保证高可用。
#### 配置示例
```
apiVersion: cci/v2
kind: Pod
metadata:
  annotations:
    resource.cci.io/pod-size-specs: 2.00_4.0
    resource.cci.io/instance-type-preference: 'general-computing,general-computing-lite'   # 指定多种实例类型
  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
  imagePullSecrets:
    - name: imagepull-secret
```
![](https://support.huaweicloud.com/usermanual-cci2/public_sys-resources/caution_3.0-zh-cn.png)
resource.cci.io/instance-type-preference与resource.cci.io/instance-type不能同时填写。
表1关键参数说明 
| 参数                                       | 是否必填 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                            |
|:---|:---|:---|:---|
| resource.cci.io/instance-type-preference | 是    | String | 参数解释：设置多个实例类型时，系统会优先选择靠前的实例类型。 参考值：'general-computing,general-computing-lite' 当前支持多实例类型配置的有： - general-computing： 通用型  - general-computing-lite： 通用型（轻享）   |
   
