question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module is not loaded when ambassador_id is set

See original GitHub issue

Describe the bug When I tried to start multiple ambassador with ambassador_id, module is not loaded to ambassador

To Reproduce

  1. Apply ambassador with AMBASSADO_ID env.
  2. Apply Module with ambassador_id like:
apiVersion: getambassador.io/v2
kind:  Module
metadata:
  name:  ambassador
spec:
  config:
    server_name: test
    ambassador_id: ext

Tried that also:

apiVersion: getambassador.io/v2
kind:  Module
metadata:
  name:  ambassador
spec:
  ambassador_id: ext
  config:
    server_name: test

Becouse documentation is not straight with that.

Expected behavior When I apply module with ambassador_Id I expect to load it into correct ambassador pod.

Versions:

  • Ambassador: 1.1.0
  • Kubernetes self hosted 1.17.1

Additional context Clear cluster configuration with ambassador.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mrtnfchscommented, Feb 7, 2020

@pbabilas - I’m having a multi ambassador setup myself and this is my Module config

---
apiVersion: getambassador.io/v2
kind: Module
metadata:
  name: ambassador
spec:
  ambassador_id: [ "ambassador-external", "ambassador-internal" ]
  config:
    server_name: ambassador
    diagnostics:
      enabled: true

I did log an issue too #2283 because I noticed that:

  • The name of the module must be ambassador otherwise it’s ignored regardless if you specify the ambassador_id
  • The ambassador_id must be outside the config spec for it to work

You might want to try one of the following approaches as I noticed sometimes the syntax differs per object

apiVersion: getambassador.io/v2
kind:  Module
metadata:
  name:  ambassador
spec:
  ambassador_id: [ "ext" ]
  config:
    server_name: test

or

apiVersion: getambassador.io/v2
kind:  Module
metadata:
  name:  ambassador
spec:
  ambassador_id:
  - 'ext'
  config:
    server_name: test
0reactions
tribonaccicommented, Jun 21, 2020

Also setting up module for different ambassador deployments (For different service ports) is not possible because of fixed module name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module is not loaded when ambassador_id is set · Issue #2266
Describe the bug. When I tried to start multiple ambassador with ambassador_id, module is not loaded to ambassador ; To Reproduce ; Expected ......
Read more >
The Ambassador Module Resource | Edge Stack
To use the ambassador Module to configure Ambassador Edge Stack, it MUST be named ambassador , otherwise it will be ignored. To create...
Read more >
The Module Resource | Ambassador
This module can be applied to any Kubernetes service (the ambassador service itself is a ... If not set, the default value from...
Read more >
datawire/ambassador - Gitter
https://www.getambassador.io/reference/core/load-balancer/ ... ERROR: ambassador-http.mapr-ingress.1: <RichStatus BAD error=not a valid Module: 'config' is ...
Read more >
ambassador 6.9.5 · helm/datawire - Artifact Hub
Chart now runs ambassador as non-root by default, so you might need to update your ambassador module config to match this. Timings. Timings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found