Skip to content

Commit 2932786

Browse files
authored
Showing how to use subPath mounts (#2480)
1 parent 062f170 commit 2932786

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

docs/features/secrets.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,23 @@ data:
196196
filename: {{ "encoded string" | b64enc }}
197197
```
198198

199-
can be used as:
199+
can be used from a pod containing
200+
201+
```yaml
202+
containers:
203+
- name: jenkins
204+
volumeMounts:
205+
- name: filename-secret
206+
mountPath: /run/secrets/filename
207+
subPath: filename
208+
readOnly: true
209+
volumes:
210+
- name: filename-secret
211+
secret:
212+
secretName: secret-name
213+
```
214+
215+
as:
200216

201217
```yaml
202218
- credentials:

0 commit comments

Comments
 (0)