Skip to content

Commit 64a4c94

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 f0fb797 commit 64a4c94

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
@@ -1128,12 +1128,17 @@ Replace the `statefulSetInitContainerImageName` attribute with the appropriate v
11281128
When you deploy applications, you can set a custom Init Container on a per-application basis.
11291129
Refer to the https://kubernetes.io/docs/concepts/workloads/pods/init-containers/[Init Containers] section of the Kubernetes reference for more information.
11301130

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

11331133
====
11341134
[source,options=nowrap]
11351135
----
11361136
deployer.<application>.kubernetes.initContainer={containerName: 'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}
1137+
# alternative for multiple init containers
1138+
deployer.<application>.kubernetes.initContainers=[{containerName:'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}, {containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}]
1139+
# multiple containers can be created inidividually
1140+
deployer.<application>.kubernetes.initContainers[0]={containerName:'test', imageName:'busybox:latest', commands:['sh', '-c', 'echo hello']}
1141+
deployer.<application>.kubernetes.initContainers[1]={containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}
11371142
----
11381143
====
11391144

0 commit comments

Comments
 (0)