apiVersion: apps/v1
kind: Deployment
metadata:
  name: opa
spec:
  selector:
    matchLabels:
      app: opa
  template:
    metadata:
      labels:
        app: opa
    spec:
      containers:
        - name: opa
          image: openpolicyagent/opa:0.32.0-rootless
          resources:
            limits:
              memory: "128Mi"
              cpu: "500m"
          args:
            - "run"
            - "--server"
            - "--log-format=json-pretty"
            - "--set=decision_logs.console=true"
          ports:
            - containerPort: 8181
