File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -142,17 +142,21 @@ builder.Build().Run();
142
142
143
143
#### Publish to Kubernetes
144
144
145
- 1 . Build your project and generate manifests :
145
+ Generate Kubernetes manifests using the built-in publishing target :
146
146
147
- ``` dotnetcli
148
- dotnet run --publisher kubernetes --output-path ./k8s-manifests
149
- ```
147
+ ``` dotnetcli
148
+ dotnet run --publisher kubernetes --output-path ./k8s-manifests
149
+ ```
150
150
151
- 1 . Apply the generated manifests:
151
+ This command generates standard Kubernetes YAML files in the specified output directory that you can deploy using ` kubectl ` or any GitOps workflow.
152
152
153
- ``` bash
154
- kubectl apply -f ./k8s-manifests
155
- ```
153
+ #### Deploy the generated manifests
154
+
155
+ Apply the generated manifests to your cluster:
156
+
157
+ ``` bash
158
+ kubectl apply -f ./k8s-manifests
159
+ ```
156
160
157
161
### Option 3: Create manual Kubernetes manifests
158
162
@@ -272,7 +276,7 @@ The Kubernetes extension provides several features that work seamlessly with .NE
272
276
- ** Port forwarding** : Access cluster services locally
273
277
- ** Apply manifests** : Deploy YAML files directly from the editor
274
278
275
- <!-- TODO: Add screenshot of VS Code with Kubernetes extension showing .NET Aspire deployment -->
279
+ :::image type="content" source="media/vscode-kubernetes-extension.png" lightbox="media/vscode-kubernetes-extension.png" alt-text="Visual Studio Code with Kubernetes extension showing .NET Aspire deployment":::
276
280
277
281
### Debugging workflow
278
282
You can’t perform that action at this time.
0 commit comments