第 11 章 为 Eventing 配置 kube-rbac-proxy
kube-rbac-proxy
组件为 Knative Eventing 提供内部身份验证和授权功能。
11.1. 为 Eventing 配置 kube-rbac-proxy 资源
您可以使用 OpenShift Serverless Operator CR 全局覆盖 kube-rbac-proxy
容器的资源分配。
You can also override resource allocation for a specific deployment.
以下配置设置 Knative Eventing kube-rbac-proxy
最小值和最大 CPU 和内存分配:
KnativeEventing CR 示例
apiVersion: operator.knative.dev/v1beta1 kind: KnativeEventing metadata: name: knative-eventing namespace: knative-eventing spec: config: deployment: "kube-rbac-proxy-cpu-request": "10m" 1 "kube-rbac-proxy-memory-request": "20Mi" 2 "kube-rbac-proxy-cpu-limit": "100m" 3 "kube-rbac-proxy-memory-limit": "100Mi" 4