apiVersion: apps/v1
kind: Deployment
metadata:
  name: terraform-report-deploy
spec:
  replicas: 2
  selector:
    matchLabels:
      app: terraform-report-app
  template:
    metadata:
      labels:
        app: terraform-report-app
        terraform: "false"
      #annotations:
        #vault.hashicorp.com/agent-inject: "true"
        #vault.hashicorp.com/role: "webapp"
        #vault.hashicorp.com/agent-inject-secret-database-config.txt: "secret/webapp/config"
        #vault.hashicorp.com/secret-volume-path: "/opt/secrets"
    spec:
      serviceAccountName: vault
      # volumes:
      #   - name: log-pvc
      #     persistentVolumeClaim:
      #       claimName: data-minio-0
      containers:
      - name: terraform-report-app-main-container
        image: klimdos/site-api:0.0.2-alpha
        # env:
          # - name: PORT
          #   value: "8080"
        # resources:
        #   limits:
        #     memory: "128Mi"
        #     cpu: "100m"
        ports:
        - containerPort: 80
        # volumeMounts:
        # - mountPath: /opt/logs
        #   name: log-pvc
