---
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: dapr
  name: security
spec:
  replicas: 1
  selector:
    matchLabels:
      app: security
  template:
    metadata:
      namespace: dapr
      labels:
        app: security
      annotations:
        dapr.io/enabled: "true"
        dapr.io/app-id: "security"
        dapr.io/app-port: "80"
        dapr.io/config: "security"
        dapr.io/log-level: "debug"
    spec:
      containers:
        - name: api
          image: parameshg/dapr-prototype-security-api:latest
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 80
          resources:
            limits:
              memory: "1Gi"
              cpu: "0.5"
          livenessProbe:
            initialDelaySeconds: 10
            failureThreshold: 2
            timeoutSeconds: 10
            periodSeconds: 10
            tcpSocket:
              port: 80
          readinessProbe:
            initialDelaySeconds: 2
            failureThreshold: 2
            timeoutSeconds: 2
            periodSeconds: 2
            tcpSocket:
              port: 80