mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
#15561 We didn't find a way to preserve history of the original fork (see [here](https://github.com/fleetdm/fleet/issues/15561#issuecomment-1883473504), thus we are moving it with one commit. The second commit updates a reference.
28 lines
969 B
Bash
Executable file
28 lines
969 B
Bash
Executable file
#!/bin/sh
|
|
|
|
UUID=$(/opt/uptycs/bin/uuidgen)
|
|
if [ $? -eq 0 ]; then
|
|
# Use kube-system UUID as the host identifier
|
|
ADDITIONAL_FLAGS="--host_identifier=specified --specified_identifier=${UUID}"
|
|
fi
|
|
|
|
if [ -d /opt/uptycs/config ]; then
|
|
# Copy bootstrap flags and configuration from volume mount
|
|
cp /opt/uptycs/config/* /opt/uptycs/etc/
|
|
fi
|
|
|
|
exec /opt/uptycs/bin/basequery \
|
|
--flagfile=/opt/uptycs/etc/kubequery.flags \
|
|
--config_path=/opt/uptycs/etc/kubequery.conf \
|
|
--database_path=/opt/uptycs/kubequery.db \
|
|
--logger_path=/opt/uptycs/logs \
|
|
--pidfile=/opt/uptycs/var/kubequery.pid \
|
|
--disable_watchdog \
|
|
--enroll_tables=osquery_info,kubernetes_info \
|
|
${ADDITIONAL_FLAGS} \
|
|
--tls_user_agent=kubequery/${KUBEQUERY_VERSION} \
|
|
--extensions_socket=/opt/uptycs/var/kubequery.em \
|
|
--extensions_autoload=/opt/uptycs/etc/autoload.exts \
|
|
--extensions_require=kubequery \
|
|
--extension_event_tables=kubernetes_events \
|
|
-D
|