numerous-judge-71563
05/30/2023, 6:02 AMCreateOrSelectStackAsync
function. Our application is hosted on Kubernetes (K8s), and we keep encountering the following error message:
"errorMessage": "An error occurred trying to start process 'pulumi' with working directory '/tmp/pulumi'. No such file or directory".
However, we have verified that the folder path exists in the pod, and the "tmp" folder has the necessary permissions. We have set up the working directory as follows:
var stackArgs = new InlineProgramArgs(PulumiConfigurationConstants.ProjectName, environment, program)
{
StackSettings = new Dictionary<string, StackSettings>
{
[environment] = new() { SecretsProvider = PulumiConfigurationConstants.SecretsProvider }
},
SecretsProvider = PulumiConfigurationConstants.SecretsProvider,
ProjectSettings = new ProjectSettings(PulumiConfigurationConstants.ProjectName, ProjectRuntimeName.Dotnet)
{
Backend = new ProjectBackend { Url = PulumiConfigurationConstants.PulumiProjectBackendUrl }
},
WorkDir = Path.Combine("..", "tmp", "pulumi")
};
var stack = await LocalWorkspace.CreateOrSelectStackAsync(stackArgs);
I have also confirmed that the file is generated in the /tmp/pulumi
directory.
We would greatly appreciate any assistance you can provide in resolving this issue.
Thank you for your attention to this matter.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by