# The deployment for cstor-pool and cstor-pool-mgmt.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: cstor-deploy
  labels:
    app: cstor
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cstor
  template:
    metadata:
      labels:
        app: cstor
    spec:
      containers:
      - name: cstor-pool
        image: openebs/cstor-main:ci
        ports:
        - containerPort: 80
        securityContext: 
          privileged: true

        volumeMounts:
        - name: device
          mountPath: /dev     
        - name: tmp
          mountPath: /tmp
          mountPropagation: Bidirectional

      - name:    cstor-pool-mgmt
        image: openebs/cstor-pool-mgmt:ci
        ports:
        - containerPort: 80
        securityContext: 
          privileged: true
        volumeMounts:
        - name: device
          mountPath: /dev
        - name: tmp
          mountPath: /tmp
          mountPropagation: Bidirectional

      volumes:
      - name: device
        hostPath:
          # directory location on host
          path: /dev
          # this field is optional
          type: Directory
      - name: tmp
        hostPath:
          path: /tmp
          type: Directory

# The deployment for cstor-pool and cstor-pool-mgmt.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: cstor-pool-deploy
  labels:
    app: cstor-pool
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cstor-pool
  template:
    metadata:
      labels:
        app: cstor-pool
    spec:
      containers:
      - name: cstor-pool
        image: openebs/cstor-main:ci
        ports:
        - containerPort: 80
        securityContext: 
          privileged: true

        volumeMounts:
        - name: device
          mountPath: /dev     
        - name: tmp
          mountPath: /tmp
          mountPropagation: Bidirectional

      - name:    cstor-pool-mgmt
        image: openebs/cstor-pool-mgmt:ci
        ports:
        - containerPort: 80
        securityContext: 
          privileged: true
        volumeMounts:
        - name: device
          mountPath: /dev
        - name: tmp
          mountPath: /tmp
          mountPropagation: Bidirectional

      volumes:
      - name: device
        hostPath:
          # directory location on host
          path: /dev
          # this field is optional
          type: Directory
      - name: tmp
        hostPath:
          path: /tmp
          type: Directory

Change label from cstor to cstor-pool on deployment 1. Why is this change necessary ? Deployment name is changed from cstor-deploy to cstor-pool-deploy Label name is changed from cstor to cstor-pool
Change label from cstor to cstor-pool on deployment
1. Why is this change necessary ?
Deployment name is changed from cstor-deploy to cstor-pool-deploy
Label name is changed from cstor to cstor-pool

Signed-off-by: gkGaneshR <3ffdcdce3be7a2573e21b866f581857db5c37d6e@gmail.com>
