apiVersion: apps/v1
kind: Deployment
metadata:
  name: library-logic
  labels:
    app: docker-demo
    area: rest-service
spec:
  replicas: 1
  selector:
    matchLabels:
      app: docker-demo
      tier: backend-liblogic-rest
  template:
    metadata:
      labels:
        app: docker-demo
        tier: backend-liblogic-rest
        area: rest-service
    spec:
      containers:
      - name: library-logic
        image: 'eyalabraham/lib_logic:0.7'
        args:
        - --host
        - "0.0.0.0"
        - --cat
        - catalog-rest
        - --borrow
        - borrowing-rest
        ports:
        - containerPort: 5004
      restartPolicy: Always