mammoth-gold-93338
08/10/2024, 1:13 PMconst service = new k8s.core.v1.Service('rook-ceph-rgw-cluster-object-store', {
metadata: {
name: 'rook-ceph-rgw-cluster-object-store',
namespace: 'rook-ceph'
}
}, { parent: this });
I need to wait for this service for few minutesmodern-zebra-45309
08/10/2024, 1:42 PMmammoth-gold-93338
08/10/2024, 1:44 PMmammoth-gold-93338
08/10/2024, 1:44 PMService ${name} is available.
);
return svc;
} catch (err) {
console.log(Waiting for service ${name}... (Attempt ${retries + 1}/${maxRetries})
);
}
await new Promise(resolve => setTimeout(resolve, delay * 1000));
retries++;
}
throw new Error(Service ${name} was not found within the expected time.
);
}
);
}mammoth-gold-93338
08/10/2024, 1:44 PMthis.clusterIP = waitForService('rook-ceph/rook-ceph-rgw-cluster-object-store').apply(s => {
return s.spec.apply(spec => spec.clusterIP);
})
modern-zebra-45309
08/10/2024, 1:45 PMmammoth-gold-93338
08/10/2024, 1:45 PMmodern-zebra-45309
08/10/2024, 1:46 PMmammoth-gold-93338
08/10/2024, 1:46 PMmodern-zebra-45309
08/10/2024, 1:46 PMmammoth-gold-93338
08/10/2024, 1:47 PMmodern-zebra-45309
08/10/2024, 1:47 PMmammoth-gold-93338
08/10/2024, 1:49 PMmammoth-gold-93338
08/10/2024, 1:50 PMmodern-zebra-45309
08/10/2024, 1:51 PMmodern-zebra-45309
08/10/2024, 1:51 PMmammoth-gold-93338
08/10/2024, 1:52 PMmammoth-gold-93338
08/10/2024, 1:55 PMmammoth-gold-93338
08/10/2024, 1:55 PMmodern-zebra-45309
08/10/2024, 1:56 PMmammoth-gold-93338
08/10/2024, 2:11 PMmammoth-gold-93338
08/10/2024, 2:11 PM/ # nslookup rook-ceph-rgw-cluster-object-store.rook-ceph.svc.cluster.local
Server: 10.96.0.10
Address: 10.96.0.10:53
Name: rook-ceph-rgw-cluster-object-store.rook-ceph.svc.cluster.local
Address: 10.103.124.14
/ # nslookup rook-ceph-rgw-cluster-object-store.rook-ceph.svc
Server: 10.96.0.10
Address: 10.96.0.10:53
** server can't find rook-ceph-rgw-cluster-object-store.rook-ceph.svc: NXDOMAIN
** server can't find rook-ceph-rgw-cluster-object-store.rook-ceph.svc: NXDOMAIN
modern-zebra-45309
08/10/2024, 2:47 PMnslookup rook-ceph-rgw-cluster-object-store.rook-ceph
if you're in a different namespace or nslookup rook-ceph-rgw-cluster-object-store
if you're in the same namespacemammoth-gold-93338
08/10/2024, 3:03 PMmammoth-gold-93338
08/10/2024, 3:04 PMmodern-zebra-45309
08/10/2024, 3:08 PMmammoth-gold-93338
08/10/2024, 3:09 PMmammoth-gold-93338
08/10/2024, 3:35 PMmammoth-gold-93338
08/10/2024, 3:35 PM