Showing how to use `subPath` mounts (#2480)
This commit is contained in:
parent
062f170d44
commit
2932786c4a
|
|
@ -196,7 +196,23 @@ data:
|
|||
filename: {{ "encoded string" | b64enc }}
|
||||
```
|
||||
|
||||
can be used as:
|
||||
can be used from a pod containing
|
||||
|
||||
```yaml
|
||||
containers:
|
||||
- name: jenkins
|
||||
volumeMounts:
|
||||
- name: filename-secret
|
||||
mountPath: /run/secrets/filename
|
||||
subPath: filename
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: filename-secret
|
||||
secret:
|
||||
secretName: secret-name
|
||||
```
|
||||
|
||||
as:
|
||||
|
||||
```yaml
|
||||
- credentials:
|
||||
|
|
|
|||
Loading…
Reference in New Issue