Skip to content

Commit

Permalink
Update documentation for initContainers addition in spring-cloud/spri…
Browse files Browse the repository at this point in the history
…ng-cloud-deployer#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
  • Loading branch information
corneil authored and cppwfs committed Aug 23, 2024
1 parent f0fb797 commit 64a4c94
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.<application>.kubernetes.initContainer={containerName: 'test', imageName: 'busybox:latest', commands: ['sh', '-c', 'echo hello']}
# alternative for multiple init containers
deployer.<application>.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.<application>.kubernetes.initContainers[0]={containerName:'test', imageName:'busybox:latest', commands:['sh', '-c', 'echo hello']}
deployer.<application>.kubernetes.initContainers[1]={containerName:'test2', imageName:'busybox:latest', commands:['sh', '-c', 'echo world']}
----
====

Expand Down

0 comments on commit 64a4c94

Please sign in to comment.