apiVersion: apps/v1
kind: Deployment
metadata:
  name: executor-service
spec:
  replicas: 2
  selector:
    matchLabels:
      app: executor-service
  template:
    metadata:
      labels:
        app: executor-service
    spec:
      restartPolicy: Always
      containers:
      - name: executor-service
        image: itbacep/executor-service
        ports:
        - containerPort: 8010
        resources: 
          requests:
            cpu: "200m"
            memory: "512Mi"
          limits:
            cpu: "300m"
            memory: "1Gi"
        env:
        - name: SPRING_KAFKA_BOOTSTRAPSERVERS
          value: kafka-headless:29092
        - name: SPRING_ZIPKIN_BASEURL
          value: http://zipkin:9411/
        - name: SPRING_PROFILES_ACTIVE
          value: prod
