# Copyright (c) 2021 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: fury-application-status-product
  labels:
    app: fury-application-status-product
spec:
  replicas: 1
  selector:
    matchLabels:
      app: fury-application-status-product
  template:
    metadata:
      labels:
        app: fury-application-status-product
    spec:
      containers:
        - name: fury-application-status-product
          image: registry.sighup.io/poc/fury-application-status
          ports:
            - containerPort: 8080
          readinessProbe:
            httpGet:
              path: /readiness
              port: 8080
            initialDelaySeconds: 3
            periodSeconds: 3
          volumeMounts:
            - name: product-config-file
              mountPath: /app/config.yml
              subPath: config.yml
      volumes:
        - name: product-config-file
          configMap:
            name: product-config-file
