Adding Pod Annotations
CCE allows you to add annotations to a YAML file to realize some advanced pod functions. The following table describes the annotations you can add.
| Annotation | Description | Default Value |
|---|---|---|
| kubernetes.AOM.log.stdout | Parameter for container standard output collection. By default, the standard output of all containers is reported to AOM. You can specify ['container name'] to configure whether to report the standard output of certain containers or not. | - |
| k8s.v1.cni.cncf.io/networks | Parameter for network plane configuration. You can enter the name of the network plane to be configured. For details, see Network Attachment Definitions. | - |
| virtual-kubelet.io/burst-to-cci | Parameter to enable CCI for auto scaling. If the related add-on has been installed and this parameter is set to true, requests can be scheduled to CCI when node resources are insufficient. For details, see Elastic Scaling of CCE Pods to CCI. | - |
| metrics.alpha.kubernetes.io/custom-endpoints | Parameter for reporting AOM monitoring metrics that you specify. For details, see Custom Monitoring. | - |
| prometheus.io/scrape | Parameter for reporting Prometheus metrics. If the value is true, the current workload reports the monitoring metrics. For details, see Monitoring by Using the prometheus Add-on. | - |
| prometheus.io/path | URL for Prometheus to collect data. For details, see Monitoring by Using the prometheus Add-on. | /metrics |
| prometheus.io/port | Endpoint port number for Prometheus to collect data. For details, see Monitoring by Using the prometheus Add-on. | - |
| prometheus.io/scheme | Protocol used by Prometheus to collect data. The value can be http or https. For details, see Monitoring by Using the prometheus Add-on. | - |
| kubernetes.io/ingress-bandwidth | Ingress bandwidth of a pod. For details, see Adding Pod Annotations. | - |
| kubernetes.io/egress-bandwidth | Egress bandwidth of a pod. For details, see Adding Pod Annotations. | - |
Last Article: Configuring QoS Rate Limiting for Inter-Pod Access
Next Article: Affinity and Anti-Affinity Scheduling
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.