https://pulumi.com logo
#kubernetes
Title
# kubernetes
c

curved-summer-41191

02/17/2022, 9:56 PM
I'm trying to create a suspended job to run later with pulumi but for some reason its creating pods and pulumi is waiting for the execution of the job - is this normal?
Copy code
new kx.Job(appName, { 
  metadata: {
    name: appName,
    namespace
  },
  spec: new kx.PodBuilder(
    {
      containers: [
        {
          image: dockerImageName,
          env: applicationEnvironment
        }
      ],
      restartPolicy: "Never"
    }
  ).asJobSpec({
    suspend: true,
    backoffLimit: 1
  })
});
q

quiet-wolf-18467

02/18/2022, 8:00 AM
You can add an annotation to the resource to disable the await behaviour:
<http://pulumi.com/skipAwait:|pulumi.com/skipAwait:> “true”
7 Views