apiVersion: apps/v1
kind: Deployment
metadata:
  name: dejo-node
  labels:
    app: dejo-node
spec:
  replicas: 3
  selector:
    matchLabels:
      app: dejo-node
  template:
    metadata:
      labels:
        app: dejo-node
    spec:
      containers:
      - name: dejo-node
        image: dejo/node:latest
        ports:
        - containerPort: 8545
        - containerPort: 30303
        envFrom:
        - configMapRef:
            name: dejo-node-config
        volumeMounts:
        - name: blockchain-storage
          mountPath: /data
      volumes:
      - name: blockchain-storage
        persistentVolumeClaim:
          claimName: dejo-node-pvc

