在YAML中为Istio EnvoyFilter设置请求缓冲区

时间:2020-11-11 15:39:41

标签: istio envoyproxy

能帮我吗,请指定YAML Istio EnvoyFilter来具有请求缓冲区,类似于Nginx请求缓冲区。 我尝试过

const typeDefsRaw = String.raw`
input ClaimInput {
  id: String!
  date: String!
  phone: String @constraint(pattern: "^05\d([-]{0,1})\d{7}$")
  email: String
  invoice: String
  doctorId: String
  therapy: [TherapyInput]
  files: [FileInput]
}
`
const typeDefs = gql`${typeDefsRaw}`;

这已成功应用于集群,但无法正常工作

谢谢

UPD 可行

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: connection
  namespace: my-test
spec:
  workloadSelector:
    labels:
      role: backend
  configPatches:
  - applyTo: LISTENER
    match:
      context: SIDECAR_INBOUND
    patch:
      operation: MERGE
      value:
        per_connection_buffer_limit_bytes: 21000000.0 #21MB

0 个答案:

没有答案