Updated on 2026-04-28 GMT+08:00

Specifying Multiple Pod Types

To avoid resource insufficiency, you can specify multiple pod types for HA if performance can be compromised to some extent.

Configuration Example

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'   # Specify multiple pod types.
  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

resource.cci.io/instance-type-preference and resource.cci.io/instance-type cannot be specified at the same time.

Table 1 Annotation

Annotation

Mandatory

Type

Description

resource.cci.io/instance-type-preference

Yes

String

Description: When multiple pod types are set, CCI preferentially selects the first pod type.

Reference value: 'general-computing,general-computing-lite'

Currently, the following pod types can be configured:

  • general-computing: general-computing pods
  • general-computing-lite: general-computing-lite pods