From 64a4c949774bffc90a06d3022320bae5f7d3c62e Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 9 Jul 2024 16:20:39 +0200 Subject: [PATCH] Update documentation for initContainers addition in https://github.com/spring-cloud/spring-cloud-deployer/issues/465 [skip ci] Update paragraph for multiple Init Containers. Fix mariadb mount to be /var/lib/mysql (#5875) Fixes #5877 Add spaces after columns for clarity. This is done during merge --- .../asciidoc/configuration-kubernetes-app-properties.adoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes-app-properties.adoc b/spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes-app-properties.adoc index 43994e1d0d..8aa0be731a 100644 --- a/spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes-app-properties.adoc +++ b/spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes-app-properties.adoc @@ -1128,12 +1128,17 @@ Replace the `statefulSetInitContainerImageName` attribute with the appropriate v When you deploy applications, you can set a custom Init Container on a per-application basis. Refer to the https://kubernetes.io/docs/concepts/workloads/pods/init-containers/[Init Containers] section of the Kubernetes reference for more information. -The following example shows how you can configure an Init Container for an application: +The following example shows how you can configure an Init Container or multiple Init Containers for an application: ==== [source,options=nowrap] ---- deployer..kubernetes.initContainer={containerName: 'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']} +# alternative for multiple init containers +deployer..kubernetes.initContainers=[{containerName:'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}, {containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}] +# multiple containers can be created inidividually +deployer..kubernetes.initContainers[0]={containerName:'test', imageName:'busybox:latest', commands:['sh', '-c', 'echo hello']} +deployer..kubernetes.initContainers[1]={containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']} ---- ====