image:
  repository: gcr.io/pingcap-public/third-party/kong/kong
  tag: "3.6"
admin:
  # kong works on AWS without admin.enabled=true
  # On GCP the proxy container will crash if not enable admin
  enabled: true
  type: ClusterIP
proxy:
  loadBalancerSourceRanges:
    - 54.148.240.60/32
    - 54.71.2.116/32
    - 52.13.110.238/32
    - 120.92.55.209/32 # tiworkload controlplane
    - 152.104.28.129/32 # tiworkload controlplane
  externalTrafficPolicy: Local
env:
  KONG_NGINX_HTTP_INCLUDE: /usr/share/nginx/tiworkload-nginx-config.conf
ingressController:
  image:
    repository: gcr.io/pingcap-public/third-party/kong/kubernetes-ingress-controller
    tag: "3.1"
replicaCount: 1
extraConfigMaps:
  # mount tiworkload-nginx-config
  - name: tiworkload-nginx-config
    mountPath: /usr/share/nginx
    subPath: tiworkload-nginx-config.conf
extraObjects:
  # configmap for supporting tiworkload sse
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: tiworkload-nginx-config
    data:
      tiworkload-nginx-config.conf: |-
        location ^~ /tiworkload {
          proxy_buffering off;
          proxy_cache off;
          proxy_set_header Connection "";
          proxy_http_version 1.1;
          chunked_transfer_encoding off;
        }
