push k8s logs to LOG SERVICE IP
parent
c77d0baa04
commit
8cafc65464
|
@ -3726,7 +3726,7 @@ class KubernetesLogService {
|
|||
// get ip address of service
|
||||
const service = await kubeClientCore.readNamespacedService('http-fileserver', namespace);
|
||||
const ip = service.body.status?.loadBalancer?.ingress?.[0]?.ip;
|
||||
if (ip) {
|
||||
if (ip && ip.length > 0) {
|
||||
return ip;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -94,7 +94,7 @@ status: {}
|
|||
// get ip address of service
|
||||
const service = await kubeClientCore.readNamespacedService('http-fileserver', namespace);
|
||||
const ip = service.body.status?.loadBalancer?.ingress?.[0]?.ip;
|
||||
if (ip) {
|
||||
if (ip && ip.length > 0) {
|
||||
return ip;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue