Este contenido no está disponible en el idioma seleccionado.
Chapter 43. ContainerTemplate schema reference
Used in: CruiseControlTemplate, EntityOperatorTemplate, JmxTransTemplate, KafkaBridgeTemplate, KafkaClusterTemplate, KafkaConnectTemplate, KafkaExporterTemplate, KafkaMirrorMakerTemplate, KafkaNodePoolTemplate, ZookeeperClusterTemplate
Full list of ContainerTemplate schema properties
You can set custom security context and environment variables for a container.
The environment variables are defined under the env property as a list of objects with name and value fields. The following example shows two custom environment variables and a custom security context set for the Kafka broker containers:
# ...
template:
kafkaContainer:
env:
- name: EXAMPLE_ENV_1
value: example.env.one
- name: EXAMPLE_ENV_2
value: example.env.two
securityContext:
runAsUser: 2000
# ...
Environment variables prefixed with KAFKA_ are internal to Streams for Apache Kafka and should be avoided. If you set a custom environment variable that is already in use by Streams for Apache Kafka, it is ignored and a warning is recorded in the log.
43.1. ContainerTemplate schema properties Copiar enlaceEnlace copiado en el portapapeles!
| Property | Property type | Description |
|---|---|---|
| env |
| Environment variables which should be applied to the container. |
| securityContext | Security context for the container. | |
| volumeMounts | VolumeMount array | Additional volume mounts which should be applied to the container. |