String operation on env variables on Kubernetes
You can do something like – name: MY_POD_NAME valueFrom: fieldRef: fieldPath: metadata.name – name: MY_POD_URI value: “uri://$(MY_POD_NAME):9099/” We are using that since K8s 1.4 $() is processed by k8s itself, does not work everywhere, but works for env variables. If your container contains bash, you can also leverage bash variable expansion “command”: [“/bin/bash”], “args”: [ … Read more