2023-06-16 14:10:53 -07:00
|
|
|
---
|
|
|
|
title_tag: Deploy the Stack | Kubernetes
|
|
|
|
meta_desc: This page provides an overview of how to deploy a Kubernetes project as a Pulumi Stack.
|
|
|
|
title: Deploy stack
|
|
|
|
h1: "Pulumi & Kubernetes: Deploy stack"
|
|
|
|
weight: 5
|
|
|
|
menu:
|
|
|
|
clouds:
|
|
|
|
parent: kubernetes-get-started
|
|
|
|
identifier: kubernetes-deploy-stack
|
|
|
|
|
|
|
|
aliases:
|
|
|
|
- /docs/quickstart/kubernetes/deploy-stack/
|
|
|
|
- /docs/get-started/kubernetes/deploy-stack/
|
|
|
|
---
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
Deploy the stack:
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ pulumi up
|
|
|
|
```
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
This command instructs Pulumi to determine the resources needed to create the stack. A preview is shown of the changes that will be made:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
Previewing update (dev)
|
|
|
|
|
|
|
|
Type Name Plan
|
|
|
|
+ pulumi:pulumi:Stack quickstart-dev create
|
|
|
|
+ └─ kubernetes:apps/v1:Deployment app-dep create
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
Outputs:
|
|
|
|
name: "app-dep-92efcbdf"
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
Resources:
|
|
|
|
+ 2 to create
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
Do you want to perform this update? [Use arrows to move, type to filter]
|
2023-06-16 14:10:53 -07:00
|
|
|
yes
|
|
|
|
> no
|
|
|
|
details
|
|
|
|
```
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
Select `yes` using the arrows and hit enter to create the resources in Kubernetes.
|
2023-06-16 14:10:53 -07:00
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
```bash
|
2023-06-16 14:10:53 -07:00
|
|
|
Do you want to perform this update? yes
|
2023-09-28 12:56:20 -05:00
|
|
|
Updating (dev)
|
|
|
|
|
|
|
|
Type Name Status
|
|
|
|
+ pulumi:pulumi:Stack quickstart-dev created (3s)
|
|
|
|
+ └─ kubernetes:apps/v1:Deployment app-dep created (1s)
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
Outputs:
|
2023-09-28 12:56:20 -05:00
|
|
|
name: "app-dep-b7413dae"
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
Resources:
|
|
|
|
+ 2 created
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
Duration: 10s
|
2023-06-16 14:10:53 -07:00
|
|
|
```
|
|
|
|
|
2023-09-28 12:56:20 -05:00
|
|
|
The `name` of the deployment that we exported is shown as a [stack output](/docs/concepts/stack#outputs).
|
2023-06-16 14:10:53 -07:00
|
|
|
|
|
|
|
{{< console-note >}}
|
|
|
|
|
|
|
|
Next, we'll make some modifications to the program.
|
|
|
|
|
|
|
|
{{< get-started-stepper >}}
|