volumes.yaml 665 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. name: configmap-pod
  6. spec:
  7. containers:
  8. - name: test
  9. image: busybox
  10. volumeMounts:
  11. - name: config-vol
  12. mountPath: /etc/config
  13. volumes:
  14. - name: config-vol
  15. configMap:
  16. name: log-config
  17. items:
  18. - key: log_level
  19. path: log_level
  20. ---
  21. apiVersion: v1
  22. kind: ConfigMap
  23. metadata:
  24. creationTimestamp: 2016-02-18T18:52:05Z
  25. name: log-config
  26. namespace: default
  27. resourceVersion: "516"
  28. uid: b4952dc3-d670-11e5-8cd0-68f728db1985
  29. data:
  30. game.properties: |
  31. enemies=aliens
  32. lives=3
  33. secret.code.lives=30
  34. ui.properties: |
  35. color.good=purple