On 2017-09-05 11:08 pm, Quinn Comendant wrote:
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
Wouldn't work. It's a 3rd party (closed source, binary only) software
that we're using, and that's what's calling hostname -f.
I suppose we could move /usr/bin/hostname out of the way, and run our
own, but that's rather a hack. (And I'm not even sure if the 3rd party
software is specifically using the hostname binary to get the fqdn.)
Thanks,
DR
--
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.