diff --git a/dist/index.js b/dist/index.js index c8bad277..188c2299 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 21b05b46..4d513f7a 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/providers/k8s/kubernetes-log-service.ts b/src/model/cloud-runner/providers/k8s/kubernetes-log-service.ts index 852d3cb7..f7cd436a 100644 --- a/src/model/cloud-runner/providers/k8s/kubernetes-log-service.ts +++ b/src/model/cloud-runner/providers/k8s/kubernetes-log-service.ts @@ -104,7 +104,16 @@ status: {} // log service json CloudRunnerLogger.log(`Service: ${JSON.stringify(service.body, undefined, 4)}`); - const logs = await CloudRunnerSystem.Run(`kubectl logs deployment/http-fileserver -f --timestamps`, false, true); + + // get podname of deployment + + const podname = await CloudRunnerSystem.Run( + `kubectl get pods -n ${namespace} -l service=http-fileserver -o jsonpath='{.items[0].metadata.name}'`, + false, + true, + ); + + const logs = await CloudRunnerSystem.Run(`kubectl logs ${podname} -f --timestamps`, false, true); CloudRunnerLogger.log(`Logs: ${logs}`); // get cluster ip