xxl-job-admin 需要读取本地host文件作为集群身份
//取executor ip注册到admin
StringBuffer triggerMsgSb = new StringBuffer();
triggerMsgSb.append(I18nUtil.getString("jobconf_trigger_admin_adress")).append(":").append(IpUtil.getIp());
/**
* get first valid addredd
* @return
*/
private static InetAddress getFirstValidAddress() {
InetAddress localAddress = null;
try {
localAddress = InetAddress.getLocalHost();
if (isValidAddress(localAddress)) {
return localAddress;
}
} catch (Throwable e) {
logger.error("Failed to retriving ip address, " + e.getMessage(), e);
}
...
}
executor job日志信息持久化,否则xxl-job-admin中无法查询读取
helm yaml配置文件中定义volumeMounts/volumeClaimTemplates
executor 域名固定,否则服务重启后无法回调读取Job日志信息
定义headless service