1. Docs
  2. Pulumi IaC
  3. Get started
  4. Get started
  5. Create project

Pulumi & Kubernetes: Create project

    Now that you have set up your environment let’s create your first Pulumi program.

    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-javascript
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-typescript
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-python
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-go
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-csharp
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-java
    
    $ mkdir quickstart && cd quickstart
    $ pulumi new kubernetes-yaml
    
    If this is your first time running Pulumi, you will be prompted to log into Pulumi Cloud. This is a free but optional service that makes IaC easy by safely and securely managing state for you. This guide explains what Pulumi Cloud is and this topic describes alternative Pulumi backend options.

    After logging in, the CLI will proceed with walking you through creating a new project.

    First, you will be asked for a project name and project description. Hit ENTER to accept the default values or specify new values.

    This command will walk you through creating a new Pulumi project.
    
    Enter a value or leave blank to accept the (default), and press <ENTER>.
    Press ^C at any time to quit.
    
    project name: (quickstart)
    project description: (A minimal Kubernetes Pulumi program)
    Created project 'quickstart'
    

    Next, you will be asked for a stack name. You can hit ENTER to accept the default value of dev.

    Please enter your desired stack name.
    To create a stack in an organization, use the format <org-name>/<stack-name> (e.g. `acmecorp/dev`).
    stack name: (dev)
    Created stack 'dev'
    

    What are projects and stacks? Pulumi projects and stacks let you organize Pulumi code. Consider a Pulumi project to be analogous to a GitHub repo—a single place for code—and a stack to be an instance of that code with a separate configuration. For instance, Project Foo may have multiple stacks for different development environments (Dev, Test, or Prod), or perhaps for different cloud configurations (geographic region for example). See Organizing Projects and Stacks for some best practices on organizing your Pulumi projects and stacks.

    After some dependency installations from npm, the project and stack will be ready.

    After the command completes, the project and stack will be ready.

    After the command completes, the project and stack will be ready.

    After the command completes, the project and stack will be ready.

    After the command completes, the project and stack will be ready.

    After the command completes, the project and stack will be ready.

    Next, we’ll review the generated project files.

      PulumiUP May 6, 2025. Register Now.