apiVersion: apps/v1
kind: Deployment
metadata:
  name: scheduler-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: scheduler
  template:
    metadata:
      labels:
        app: scheduler
    spec:
      containers:
        - name: scheduler
          image: aspian/scheduler
          env:
            - name: NATS_CLUSTER_NAME
              value: adrian
            - name: NATS_URLS
              value: 'http://adrian-nats:4222'
            - name: REDIS_HOST
              value: scheduler-redis-srv
