@Override
    public InputStream logs(K8sAuthorisation authConfig, String serviceName, String namespace, String podName,
                            String containerName, Integer readLines, boolean tail) throws HyscaleException {
        try {
            ApiClient apiClient = clientProvider.get(authConfig);
            V1PodHandler podHandler = (V1PodHandler) ResourceHandlers.getHandlerOf(ResourceKind.POD.getKind());
            if (readLines == null) {
                readLines = deployerConfig.getDefaultTailLines();
            }
            if (tail) {
                return podHandler.tailLogs(apiClient, serviceName, namespace, podName, containerName, readLines);
            } else {
                return podHandler.getLogs(apiClient, serviceName, namespace, podName, containerName, readLines);
            }
        } catch (HyscaleException e) {
            logger.error("Error while tailing logs, error {} ", e.toString());
            throw e;
        }
    }
Wait for Pod scheduled, creation and Readiness state
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/deployer/impl/KubernetesDeployer.java