mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Confess the horrible hack for outer host
This commit is contained in:
parent
c7447a719f
commit
d140c71a0d
@ -14,7 +14,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# WARNING! HORRIBLE HACK! We expect /outerhost to be mapped to
|
||||
# the enclosing /etc/host file so we can determine the name of
|
||||
# the host machine (super fragile). This is a temporary hack until
|
||||
# service IPs are done.
|
||||
OUTER_HOST=`tail -n 1 /outerhost | awk '{print $3}'`
|
||||
|
||||
# Copy the Fluentd config file and patch it to refer to the
|
||||
# name of the host machine for ES_HOST. HACK!
|
||||
cp td-agent.conf /etc/td-agent
|
||||
sed -i -e "s/ES_HOST/${OUTER_HOST}/" /etc/td-agent/td-agent.conf
|
||||
/usr/sbin/td-agent
|
||||
|
Loading…
Reference in New Issue
Block a user