apiVersion: apps/v1
kind: Deployment
metadata:
  name: worker
  labels:
    app: minimaldask
spec:
  # modify replicas according to your case
  replicas: 3
  selector:
    matchLabels:
      env: worker
  template:
    metadata:
      labels:
        env: worker
    spec:
      containers:
      - name: worker
        image: iefak01/minimaldask:latest
        env:
        - name: PORT
          value: "8786"
        - name: WORKER
          value: "true"