Skip to content

Commit 728180d

Browse files
committed
added example for adding fileset volume on deployment creation
1 parent 41e3cd0 commit 728180d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/containers/container_deployments_example.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ def main() -> None:
9696
path="/health"
9797
),
9898
volume_mounts=[
99+
# Shared memory volume
99100
VolumeMount(
100101
type=VolumeMountType.SCRATCH,
101102
mount_path="/data"
103+
),
104+
# Fileset secret
105+
VolumeMount(
106+
type=VolumeMountType.SECRET,
107+
mount_path="/path/to/mount",
108+
name="my-fileset-secret" # This fileset secret must be created beforehand
102109
)
103110
],
104111
env=[

0 commit comments

Comments
 (0)