Note that subPathExpr uses round brackets.

As it's easy to misread this as curly brackets for users familiar with
shell interpolation.
This commit is contained in:
bglimepoint 2021-12-15 04:16:21 +00:00 committed by GitHub
parent 1154e19be3
commit ab9fdcbe24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1133,6 +1133,7 @@ spec:
volumeMounts:
- name: workdir1
mountPath: /logs
# The variable expansion uses round brackets (not curly brackets).
subPathExpr: $(POD_NAME)
restartPolicy: Never
volumes: