此内容没有您所选择的语言版本。
Chapter 5. Operating a proxy
Monitor the operational status of the proxy and configure resource usage. This section explains how to check the status of the KafkaProxyIngress and VirtualKafkaCluster resources, and how to set CPU and memory requests and limits for the proxy container.
This section assumes you have a running Streams for Apache Kafka Proxy instance.
The status of a VirtualKafkaCluster resource provides feedback on its configuration through a set of conditions. These include the ResolvedRefs condition, which indicates whether all referenced resources exist, and the Accepted condition, which indicates whether the cluster’s configuration was successfully applied to the proxy.
5.1.1. ResolvedRefs conditions 复制链接链接已复制到粘贴板!
When you create a VirtualKafkaCluster, the operator checks whether the following exist:
-
A
KafkaProxymatchingspec.proxyRef. -
Each
KafkaProxyIngressspecified inspec.ingresses, and whether they refer to the sameKafkaProxyas the virtual cluster. -
A
Secretreferred to in thetlsproperty.
The result is reported in status.conditions with a ResolvedRefs condition accordingly.
Example VirtualKafkaCluster status when all referenced resources exist
A status value of False means that one or more of the referenced resources is missing. In this case, the condition includes reason and message properties with more details.
5.1.2. Accepted conditions 复制链接链接已复制到粘贴板!
When a VirtualKafkaCluster has a valid spec, the operator attempts to configure the proxy instance accordingly. This might not be possible. For example, the spec may be valid but incompatible with other virtual clusters running in the same proxy instance.
The operator sets a condition type of Accepted in status.conditions to indicate whether or not a virtual cluster has been successfully configured within a proxy instance.
The status of a KafkaProxyIngress resource provides feedback on its configuration through a set of conditions. These include the ResolvedRefs condition, which indicates whether all referenced resources exist.
When you create a KafkaProxyIngress, the operator checks whether a KafkaProxy corresponding to the spec.proxyRef exists. The result is reported in status.conditions with a ResolvedRefs condition accordingly.
Example KafkaProxyIngress status when spec.proxyRef exists
A status value of False means that the KafkaProxy resource is missing. In this case, the condition includes reason and message properties with more details.
When you define a KafkaProxy resource, a number of OpenShift Pods are created, each with a proxy container. Each of these containers runs a single Streams for Apache Kafka Proxy process.
By default, these proxy containers are defined without resource limits. To manage CPU and memory consumption in your environment, modify the proxyContainer section within your KafkaProxy specification.
Example KafkaProxy configuration with proxy container resource specification