Chapter 5. Operating a proxy
Operate a deployed proxy by configuring its resource allocations.
This section assumes you have a running Streams for Apache Kafka Proxy instance.
5.1. Configuring Proxy container CPU and memory resource limits and requests Copy linkLink copied to clipboard!
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
kind: KafkaProxy
apiVersion: kroxylicious.io/v1alpha1
metadata:
namespace: my-proxy
name: simple
spec:
infrastructure:
proxyContainer:
resources:
requests:
cpu: '400m'
memory: '656Mi'
limits:
cpu: '500m'
memory: '756Mi'