Perhaps use a wrapper for hostname that returns a simulated hostname if called from your special program:
#!/bin/bash if [[ $(ps -o comm= $PPID) == '/your/app/here' ]]; then echo "imitation.hostname.ourdomain.com" else /bin/hostname "$@" fi -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.