apiVersion: apps/v1
kind: Deployment
metadata:
  name: ampa-processing-3.0
  namespace: kube-system
  labels:
    app: ampa-processing-3.0
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ampa-processing-3.0
  template:
    metadata:
      labels:
        app: ampa-processing-3.0
    spec:
      volumes:
        - name: xls-data-ampa
          persistentVolumeClaim:
            claimName: nfs-ampa-pvc
        - name: static-ampa
          persistentVolumeClaim:
            claimName: nfs-static-pvc
      containers:
      - name: ampa-processing
        image: 172.18.1.46:5000/ampa:3.2
        resources:
          requests:
            memory: "50Mi"
            cpu: "250m"
          limits:
            memory: "200Mi"
            cpu: "500m"
        command: ["/code/processingtool.sh"]
        volumeMounts:
          - mountPath: /code/xls
            name: xls-data-ampa
          - mountPath: /code/static
            name: static-ampa