how can I create a yaml file for pod that get its name from a environment variables defined in yaml file.
I have tried this but it is not allowed.
metadata:
generateName: $(HOSTNAME)
.
.
.
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName