Files
website/content/en/examples/pods/storage/projected-secret-downwardapi-configmap.yaml
Aravindh Puthiyaparambil c0dd24a8ba storage: create new file for projected volumes
Move inline examples into the examples folder
2021-11-08 16:07:33 -08:00

36 lines
817 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: volume-test
spec:
containers:
- name: container-test
image: busybox
volumeMounts:
- name: all-in-one
mountPath: "/projected-volume"
readOnly: true
volumes:
- name: all-in-one
projected:
sources:
- secret:
name: mysecret
items:
- key: username
path: my-group/my-username
- downwardAPI:
items:
- path: "labels"
fieldRef:
fieldPath: metadata.labels
- path: "cpu_limit"
resourceFieldRef:
containerName: container-test
resource: limits.cpu
- configMap:
name: myconfigmap
items:
- key: config
path: my-group/my-config