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.
| 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:
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot