Skip to content

Commit 54fb006

Browse files
Corneil du Plessiscppwfs
Corneil du Plessis
authored andcommitted
Update documentation for initContainers addition in spring-cloud/spring-cloud-deployer#465 [skip ci]
Update paragraph for multiple Init Containers. Fix mariadb mount to be /var/lib/mysql (spring-cloud#5875) Fixes spring-cloud#5877 Add spaces after columns for clarity. This is done during merge
1 parent b515672 commit 54fb006

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/configuration-kubernetes-app-properties.adoc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1123,12 +1123,17 @@ Replace the `statefulSetInitContainerImageName` attribute with the appropriate v
11231123
When you deploy applications, you can set a custom Init Container on a per-application basis.
11241124
Refer to the https://kubernetes.io/docs/concepts/workloads/pods/init-containers/[Init Containers] section of the Kubernetes reference for more information.
11251125

1126-
The following example shows how you can configure an Init Container for an application:
1126+
The following example shows how you can configure an Init Container or multiple Init Containers for an application:
11271127

11281128
====
11291129
[source,options=nowrap]
11301130
----
11311131
deployer.<application>.kubernetes.initContainer={containerName: 'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}
1132+
# alternative for multiple init containers
1133+
deployer.<application>.kubernetes.initContainers=[{containerName:'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}, {containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}]
1134+
# multiple containers can be created inidividually
1135+
deployer.<application>.kubernetes.initContainers[0]={containerName:'test', imageName:'busybox:latest', commands:['sh', '-c', 'echo hello']}
1136+
deployer.<application>.kubernetes.initContainers[1]={containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}
11321137
----
11331138
====
11341139

0 commit comments

Comments
 (0)