此内容没有您所选择的语言版本。
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:
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 复制链接链接已复制到粘贴板!
| 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. |