Description
Expected Behaviour
I work at BRYTER where we use OpenFaaS as part of our integrations platform (3rd-party integrations are operated as OpenFaaS functions). We are using Datadog APM for distributed tracing and application monitoring in our product and we would like to enable the same for our (OpenFaaS-based) integrations. The Datadog documentation suggests that we need to 'configure application pods to pull the host IP in order to communicate with the Datadog Agent', namely point the DD_AGENT_HOST
environment variable to status.hostIP
, like in the following example:
apiVersion: apps/v1
kind: Deployment
# ...
spec:
containers:
- name: "<CONTAINER_NAME>"
image: "<CONTAINER_IMAGE>"/"<TAG>"
env:
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
Is there a way, at function deploy time, to achieve something similar to the above?
Current Behaviour
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
- Yes
- No
List All Possible Solutions and Workarounds
Which Solution Do You Recommend?
Steps to Reproduce (for bugs)
Context
See the description above.
Your Environment
-
FaaS-CLI version ( Full output from:
faas-cli version
): -
Docker version
docker version
(e.g. Docker 17.0.05 ): -
What version and distribution of Kubernetes are you using?
kubectl version
: v1.21.2-eks-0389ca3, faas-netes 0.13.5, faas 0.21.1 -
Operating System and version (e.g. Linux, Windows, MacOS):
-
Link to your project or a code example to reproduce issue:
-
What network driver are you using and what CIDR? i.e. Weave net / Flannel
Activity