iVersion: v1
kind: ConfigMap
metadata:
  name: opa-config
  namespace: opa
data:
  config.yaml: |
    # 您可以在官方文档中找到 OPA 配置
    decision_logs:
      console: true
    plugins:
      envoy_ext_authz_grpc:
        addr: &#34;:9191&#34;
        path: mypackage/mysubpackage/myrule # gRPC 插件的默认路径
    # 您可以在此处添加自己的服务和捆绑配置
---
apiVersion: v1
kind: Service
metadata:
  name: opa
  namespace: opa
  labels:
    app: opa
spec:
  ports:
    - por