apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: taskmgr
  name: taskmgr
  namespace: default
spec:
  replicas: 2
  selector:
    matchLabels:
      app: taskmgr
  template:
    metadata:
      labels:
        app: taskmgr
    spec:
      containers:
        - image: petherenk/cloud-talks:latest
          imagePullPolicy: Always
          name: taskmanager
          envFrom:
            - configMapRef:
                name: taskmanager-configmap
          ports:
            - containerPort: 3000
              protocol: TCP


