Slide 41
Slide 41 text
$ cat ds.yaml
apiVersion: apps/v1
kind: Deployment
...
containers:
- name: data-access
image: ubuntu:18.04
command: ["/bin/sh"]
args: ["-c", "while true; do echo hello; sleep 10; done"]
volumeMounts:
- name: prometheus-data-old
mountPath: /old
- name: prometheus-data
mountPath: /new
volumes:
- name: prometheus-data-old
persistentVolumeClaim:
claimName: prometheus-pvc-old
- name: prometheus-data
persistentVolumeClaim:
claimName: prometheus-pvc