apiVersion: apps/v1
kind: Deployment
metadata:
  name: persistent-dep
spec:
  replicas: 1
  selector:
    matchLabels:
      app: persistent
  template:
    metadata:
      labels:
        app: persistent
    spec:
      volumes:
      - name: shared-logs
        persistentVolumeClaim:
          claimName: local-claim
      containers:
        - name: pingpong
          image: robsondepaula/pingpong:1_11
          volumeMounts: 
          - name: shared-logs
            mountPath: /tmp/log
        - name: reader
          image: robsondepaula/main-app:1_11
          volumeMounts: 
          - name: shared-logs
            mountPath: /tmp/log