apiVersion: v1
kind: ConfigMap
metadata:
  name: opa-envoy-config
  labels:
    app: opa
data:
  config.yaml: |
    services:
      bundle_server:
        url: http://policy/api/v1
        response_header_timeout_seconds: 5

    bundles:
      envoy/authz:
        service: bundle_server
        resource: bundles/bundle.tar.gz
        persist: true
        polling:
          min_delay_seconds: 10
          max_delay_seconds: 30
