一例
以下のようにボリュームを2つのコンテナで共有すれば別のイメージから同じデータが見れます。
apiVersion: v1 kind: Pod metadata: name: test spec: restartPolicy: Never containers: - name: getdata image: test command: ["データ取得系"] volumeMounts: - name: test mountPath: /dump - name: putdata image: test command: ["データを送付系"] volumeMounts: - name: test mountPath: /dump volumes: - name: test emptyDir: {}
emptyDirにしているのNode上の領域を使うため、これが嫌なら外部ディスクを使うべきですね。