-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Kubernetes provides the ability for environment entries to reference any defined earlier in the list per this link... https://kubernetes.io/docs/tasks/inject-data-application/define-interdependent-environment-variables/#define-an-environment-dependent-variable-for-a-container.
I would like to be able to utilize this feature to set the APPDYNAMICS_AGENT_UNIQUE_HOST_ID like so...
In the values.yaml
daemonset:
envValueFrom:
MY_HOST_IP:
fieldRef:
fieldPath: status.hostIP
additionalEnv:
- name: APPDYNAMICS_AGENT_UNIQUE_HOST_ID
value: "dev-$(MY_HOST_IP)"
This will allow to prefix the name of the resources in the appd console and more easily find things with a more human readable option than the node name currently being assigned.
I've tried this method using a config map reference (
| {{- range $value := .Values.daemonset.envFromConfigMap }} |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels