title: strip_path and preserve_host attributes in KongIngress object. What do they do?
body: <p>I have a <code>KongIngress</code> object configuration attributes regarding to Ingress resource which call to kong as an Ingress controller. I actually have this configuration:</p>
  
  <pre><code>apiVersion: configuration.konghq.com/v1
  kind: KongIngress
  metadata:
    name: echo-site-ingress
    namespace: hello-world
    annotations:
      kubernetes.io/ingress.class: "kong"
  proxy:
    protocols:
      - http
      - https
  #  path: /
  route:
    methods:
      - POST
      - GET
    strip_path: true
    preserve_host: true
  ---
  #My Ingress resource
  apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    annotations:
      cert-manager.io/cluster-issuer: letsencrypt-prod
      kubernetes.io/ingress.class: kong
      plugins.konghq.com: helloworld-customer-acceptance-basic-auth, hello-world-customer-acceptance-acl
    name: echo-site-ingress
    namespace: hello-world
  spec:
    rules:
    - host: hello-world.bgarcial.me
      http:
        paths:
        - backend:
            serviceName: echo
            servicePort: 80
          path: /
    tls: 
    - hosts:
      - hello-world.bgarcial.me
      secretName: letsencrypt-prod
  </code></pre>
  
  <p>The questions are:</p>
  
  <p>What are doing in my <code>kind:KongIngress</code> object resource the <code>strip_path</code> and <code>preserve_host</code> attributes?</p>
  
  <p>I read the documentation <a href="https://docs.konghq.com/2.0.x/admin-api/#request-body-3" rel="nofollow noreferrer">here</a>, but it is not clear for me: </p>
  
  <p>Regarding to <code>strip_path</code>  I see this one:</p>
  
  <blockquote>
    <p>When matching a Route via one of the paths, strip the matching prefix from the upstream request URL. Defaults to true.
    but as we can see, I am not using the path  attribute inside my KongIngress object (I commented for illustration purposes about my question)</p>
  </blockquote>
  
  <p>So, how <code>strip_path</code> attribute value is applied here?</p>
  
  <p>It is because I am using in my Ingress resource the <code>path: /</code> attribute and my Ingress and my KongIngress resources are working together?</p>
  
  <p>I really don't have a clue about it, but I would like to know how is this about behind scenes.</p>