ambassador ingress Not able to use canary and add_request_headers in the same Mapping2019 Community Moderator ElectionWhen I use Deployment in Kubernetes, what's the differences between apps/v1beta1 and extensions/v1beta1?Need help in accessning Kubernetes UIkubernetes jobs init containerHow could I debug requests to a service on KubernetesKubernetes exposed LoadBalancer service is very slowIstio Ingress Controller does not preserves client original IPkubernetes python3.5 SSLError(“bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)”,)GitLab Kubernetes integration error; configuration of Helm Tiller already existsWhat's the difference between “volumeDevices” vs “volumeMounts” with k8s v1.13Kubectl update/upgrade and view version is not matching

How many characters using PHB rules does it take to be able to have access to any PHB spell at the start of an adventuring day?

Is it possible to avoid unpacking when merging Association?

Reverse string, can I make it faster?

Is it necessary to separate DC power cables and data cables?

Why was Goose renamed from Chewie for the Captain Marvel film?

Makefile strange variable substitution

Is it "Vierergruppe" or "Viergruppe", or is there a distinction?

Filtering SOQL results with optional conditionals

Accepted offer letter, position changed

Does the nature of the Apocalypse in The Umbrella Academy change from the first to the last episode?

Why does Captain Marvel assume the people on this planet know this?

Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?

Can I pump my MTB tire to max (55 psi / 380 kPa) without the tube inside bursting?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Word for a person who has no opinion about whether god exists

Virginia employer terminated employee and wants signing bonus returned

How to draw cubes in a 3 dimensional plane

Are babies of evil humanoid species inherently evil?

Can one live in the U.S. and not use a credit card?

Counting all the hearts

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Error during using callback start_page_number in lualatex

How do I express some one as a black person?

How to secure an aircraft at a transient parking space?



ambassador ingress Not able to use canary and add_request_headers in the same Mapping



2019 Community Moderator ElectionWhen I use Deployment in Kubernetes, what's the differences between apps/v1beta1 and extensions/v1beta1?Need help in accessning Kubernetes UIkubernetes jobs init containerHow could I debug requests to a service on KubernetesKubernetes exposed LoadBalancer service is very slowIstio Ingress Controller does not preserves client original IPkubernetes python3.5 SSLError(“bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)”,)GitLab Kubernetes integration error; configuration of Helm Tiller already existsWhat's the difference between “volumeDevices” vs “volumeMounts” with k8s v1.13Kubectl update/upgrade and view version is not matching










0















I want to pass a few custom headers to a canary service. On adding both the mappings to the template, it is disregarding the weight and adding the header to 100% of the traffic and routing them to the canary service.



Below is my ambassador service config



 getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Mapping
name: flag_off_mapping
prefix: /web-app/
service: web-service-flag
weight: 99
---
apiVersion: ambassador/v1
kind: Mapping
name: flag_on_mapping
prefix: /web-app/
add_request_headers:
x-halfbakedfeature: enabled
service: web-service-flag
weight: 1


I expect 99% of the traffic to hit the service without any additional headers and 1% of the traffic to hit the service with x-halfbakedfeature: enabled header added to the request object.



  • Ambassador: 0.50.3

  • Kubernetes environment [AWS L7 ELB]

$ kubectl version
Client Version: version.InfoMajor:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-04T04:48:03Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"darwin/amd64"
Server Version: version.InfoMajor:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:36:14Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"
$


Apologies for X-posting in Github and SO.










share|improve this question


























    0















    I want to pass a few custom headers to a canary service. On adding both the mappings to the template, it is disregarding the weight and adding the header to 100% of the traffic and routing them to the canary service.



    Below is my ambassador service config



     getambassador.io/config: |
    ---
    apiVersion: ambassador/v1
    kind: Mapping
    name: flag_off_mapping
    prefix: /web-app/
    service: web-service-flag
    weight: 99
    ---
    apiVersion: ambassador/v1
    kind: Mapping
    name: flag_on_mapping
    prefix: /web-app/
    add_request_headers:
    x-halfbakedfeature: enabled
    service: web-service-flag
    weight: 1


    I expect 99% of the traffic to hit the service without any additional headers and 1% of the traffic to hit the service with x-halfbakedfeature: enabled header added to the request object.



    • Ambassador: 0.50.3

    • Kubernetes environment [AWS L7 ELB]

    $ kubectl version
    Client Version: version.InfoMajor:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-04T04:48:03Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"darwin/amd64"
    Server Version: version.InfoMajor:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:36:14Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"
    $


    Apologies for X-posting in Github and SO.










    share|improve this question
























      0












      0








      0








      I want to pass a few custom headers to a canary service. On adding both the mappings to the template, it is disregarding the weight and adding the header to 100% of the traffic and routing them to the canary service.



      Below is my ambassador service config



       getambassador.io/config: |
      ---
      apiVersion: ambassador/v1
      kind: Mapping
      name: flag_off_mapping
      prefix: /web-app/
      service: web-service-flag
      weight: 99
      ---
      apiVersion: ambassador/v1
      kind: Mapping
      name: flag_on_mapping
      prefix: /web-app/
      add_request_headers:
      x-halfbakedfeature: enabled
      service: web-service-flag
      weight: 1


      I expect 99% of the traffic to hit the service without any additional headers and 1% of the traffic to hit the service with x-halfbakedfeature: enabled header added to the request object.



      • Ambassador: 0.50.3

      • Kubernetes environment [AWS L7 ELB]

      $ kubectl version
      Client Version: version.InfoMajor:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-04T04:48:03Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"darwin/amd64"
      Server Version: version.InfoMajor:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:36:14Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"
      $


      Apologies for X-posting in Github and SO.










      share|improve this question














      I want to pass a few custom headers to a canary service. On adding both the mappings to the template, it is disregarding the weight and adding the header to 100% of the traffic and routing them to the canary service.



      Below is my ambassador service config



       getambassador.io/config: |
      ---
      apiVersion: ambassador/v1
      kind: Mapping
      name: flag_off_mapping
      prefix: /web-app/
      service: web-service-flag
      weight: 99
      ---
      apiVersion: ambassador/v1
      kind: Mapping
      name: flag_on_mapping
      prefix: /web-app/
      add_request_headers:
      x-halfbakedfeature: enabled
      service: web-service-flag
      weight: 1


      I expect 99% of the traffic to hit the service without any additional headers and 1% of the traffic to hit the service with x-halfbakedfeature: enabled header added to the request object.



      • Ambassador: 0.50.3

      • Kubernetes environment [AWS L7 ELB]

      $ kubectl version
      Client Version: version.InfoMajor:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-04T04:48:03Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"darwin/amd64"
      Server Version: version.InfoMajor:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:36:14Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"
      $


      Apologies for X-posting in Github and SO.







      kubernetes kubernetes-ingress envoyproxy






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 15:20









      Smruti MandalSmruti Mandal

      4619




      4619






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55026493%2fambassador-ingress-not-able-to-use-canary-and-add-request-headers-in-the-same%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55026493%2fambassador-ingress-not-able-to-use-canary-and-add-request-headers-in-the-same%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко