Skip to content

Commit

Permalink
Update tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Nov 17, 2023
1 parent 42aed30 commit a9b0211
Show file tree
Hide file tree
Showing 5 changed files with 385 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider | C#"
h1: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
linktitle: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
meta_desc: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider How-to Guide using C#"
no_edit_this_page: true
cloud: azure
language: cs
layout: package
---

<!-- WARNING: this page was generated by a tool. Do not edit it by hand. -->
<!-- To change it, please see https://github.com/pulumi/docs/tree/master/tools/mktutorial. -->

<p class="mb-4 flex">
<a class="flex flex-wrap items-center rounded-md font-display text-lg text-white bg-blue-600 border-2 border-blue-600 px-2 mr-2 whitespace-no-wrap hover:text-white" style="height: 45px;" href="https://github.com/pulumi/examples/tree/master/azure-cs-aks-managed-identity" target="_blank">
<span><i class="fab fa-github pr-2"></i> View Code</span>
</a>
<a href="https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/azure-cs-aks-managed-identity/README.md" target="_blank">
<img src="https://get.pulumi.com/new/button.svg" alt="Deploy">
</a>
</p>


This example deploys an AKS cluster, creates an Azure User Assigned Managed Identity, and sets credentials to manage access to the cluster.

## Deploying the App

To deploy your infrastructure, follow the below steps.

### Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
1. [Configure Azure Credentials](https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/)

### Steps

After [cloning](https://github.com/pulumi/examples#checking-out-a-single-example) this repo, from this working directory, run these commands:

1. Create a new stack, which is an isolated deployment target for this example:

```bash
$ pulumi stack init dev
```

1. Set the Azure region location to use:

```
$ pulumi config set azure-native:location westus2
```

1. Stand up the cluster by invoking pulumi
```bash
$ pulumi up
```

1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an [Output](https://www.pulumi.com/docs/concepts/inputs-outputs/#outputs). You can save this kubeconfig to a file like so:
```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```
Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
```bash
$ KUBECONFIG=./kubeconfig.yaml kubectl get nodes
```
1. From there, feel free to experiment. Simply making edits and running `pulumi up` will incrementally update your stack.
1. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
```bash
$ pulumi destroy --yes
$ pulumi stack rm --yes
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider | Go"
h1: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
linktitle: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
meta_desc: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider How-to Guide using Go"
no_edit_this_page: true
cloud: azure
language: go
layout: package
---

<!-- WARNING: this page was generated by a tool. Do not edit it by hand. -->
<!-- To change it, please see https://github.com/pulumi/docs/tree/master/tools/mktutorial. -->

<p class="mb-4 flex">
<a class="flex flex-wrap items-center rounded-md font-display text-lg text-white bg-blue-600 border-2 border-blue-600 px-2 mr-2 whitespace-no-wrap hover:text-white" style="height: 45px;" href="https://github.com/pulumi/examples/tree/master/azure-go-aks-managed-identity" target="_blank">
<span><i class="fab fa-github pr-2"></i> View Code</span>
</a>
<a href="https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/azure-go-aks-managed-identity/README.md" target="_blank">
<img src="https://get.pulumi.com/new/button.svg" alt="Deploy">
</a>
</p>


This example deploys an AKS cluster, creates an Azure User Assigned Managed Identity, and sets credentials to manage access to the cluster.

## Deploying the App

To deploy your infrastructure, follow the below steps.

### Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
1. [Configure Azure Credentials](https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/)

### Steps

After [cloning](https://github.com/pulumi/examples#checking-out-a-single-example) this repo, from this working directory, run these commands:

1. Create a new stack, which is an isolated deployment target for this example:

```bash
$ pulumi stack init dev
```

1. Set the Azure region location to use:

```
$ pulumi config set azure-native:location westus2
```

1. Stand up the cluster by invoking pulumi
```bash
$ pulumi up
```

1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an [Output](https://www.pulumi.com/docs/concepts/inputs-outputs/#outputs). You can save this kubeconfig to a file like so:
```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```
Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
```bash
$ KUBECONFIG=./kubeconfig.yaml kubectl get nodes
```
1. From there, feel free to experiment. Simply making edits and running `pulumi up` will incrementally update your stack.
1. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
```bash
$ pulumi destroy --yes
$ pulumi stack rm --yes
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider | Python"
h1: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
linktitle: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
meta_desc: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider How-to Guide using Python"
no_edit_this_page: true
cloud: azure
language: py
layout: package
---

<!-- WARNING: this page was generated by a tool. Do not edit it by hand. -->
<!-- To change it, please see https://github.com/pulumi/docs/tree/master/tools/mktutorial. -->

<p class="mb-4 flex">
<a class="flex flex-wrap items-center rounded-md font-display text-lg text-white bg-blue-600 border-2 border-blue-600 px-2 mr-2 whitespace-no-wrap hover:text-white" style="height: 45px;" href="https://github.com/pulumi/examples/tree/master/azure-py-aks-managed-identity" target="_blank">
<span><i class="fab fa-github pr-2"></i> View Code</span>
</a>
<a href="https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/azure-py-aks-managed-identity/README.md" target="_blank">
<img src="https://get.pulumi.com/new/button.svg" alt="Deploy">
</a>
</p>


This example deploys an AKS cluster, creates an Azure User Assigned Managed Identity, and sets credentials to manage access to the cluster.

## Deploying the App

To deploy your infrastructure, follow the below steps.

### Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
1. [Configure Azure Credentials](https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/)

### Steps

After [cloning](https://github.com/pulumi/examples#checking-out-a-single-example) this repo, from this working directory, run these commands:

1. Create a new stack, which is an isolated deployment target for this example:

```bash
$ pulumi stack init dev
```

1. Set the Azure region location to use:

```
$ pulumi config set azure-native:location westus2
```

1. Stand up the cluster by invoking pulumi
```bash
$ pulumi up
```

1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an [Output](https://www.pulumi.com/docs/concepts/inputs-outputs/#outputs). You can save this kubeconfig to a file like so:
```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```
Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
```bash
$ KUBECONFIG=./kubeconfig.yaml kubectl get nodes
```
1. From there, feel free to experiment. Simply making edits and running `pulumi up` will incrementally update your stack.
1. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
```bash
$ pulumi destroy --yes
$ pulumi stack rm --yes
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider | TypeScript"
h1: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
linktitle: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
meta_desc: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider How-to Guide using TypeScript"
no_edit_this_page: true
cloud: azure
language: ts
layout: package
---

<!-- WARNING: this page was generated by a tool. Do not edit it by hand. -->
<!-- To change it, please see https://github.com/pulumi/docs/tree/master/tools/mktutorial. -->

<p class="mb-4 flex">
<a class="flex flex-wrap items-center rounded-md font-display text-lg text-white bg-blue-600 border-2 border-blue-600 px-2 mr-2 whitespace-no-wrap hover:text-white" style="height: 45px;" href="https://github.com/pulumi/examples/tree/master/azure-ts-aks-managed-identity" target="_blank">
<span><i class="fab fa-github pr-2"></i> View Code</span>
</a>
<a href="https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/azure-ts-aks-managed-identity/README.md" target="_blank">
<img src="https://get.pulumi.com/new/button.svg" alt="Deploy">
</a>
</p>


This example deploys an AKS cluster, creates an Azure User Assigned Managed Identity, and sets credentials to manage access to the cluster.

## Deploying the App

To deploy your infrastructure, follow the below steps.

### Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
1. [Configure Azure Credentials](https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/)

### Steps

After [cloning](https://github.com/pulumi/examples#checking-out-a-single-example) this repo, from this working directory, run these commands:

1. Create a new stack, which is an isolated deployment target for this example:

```bash
$ pulumi stack init dev
```

1. Set the Azure region location to use:

```
$ pulumi config set azure-native:location westus2
```

1. Stand up the cluster by invoking pulumi
```bash
$ pulumi up
```

1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an [Output](https://www.pulumi.com/docs/concepts/inputs-outputs/#outputs). You can save this kubeconfig to a file like so:
```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```
Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
```bash
$ KUBECONFIG=./kubeconfig.yaml kubectl get nodes
```
1. From there, feel free to experiment. Simply making edits and running `pulumi up` will incrementally update your stack.
1. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
```bash
$ pulumi destroy --yes
$ pulumi stack rm --yes
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider | YAML"
h1: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
linktitle: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider"
meta_desc: "Azure Kubernetes Service (AKS) Cluster using the native Azure Provider How-to Guide using YAML"
no_edit_this_page: true
cloud: azure
language: yaml
layout: package
---

<!-- WARNING: this page was generated by a tool. Do not edit it by hand. -->
<!-- To change it, please see https://github.com/pulumi/docs/tree/master/tools/mktutorial. -->

<p class="mb-4 flex">
<a class="flex flex-wrap items-center rounded-md font-display text-lg text-white bg-blue-600 border-2 border-blue-600 px-2 mr-2 whitespace-no-wrap hover:text-white" style="height: 45px;" href="https://github.com/pulumi/examples/tree/master/azure-yaml-aks-managed-identity" target="_blank">
<span><i class="fab fa-github pr-2"></i> View Code</span>
</a>
<a href="https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/azure-yaml-aks-managed-identity/README.md" target="_blank">
<img src="https://get.pulumi.com/new/button.svg" alt="Deploy">
</a>
</p>


This example deploys an AKS cluster, creates an Azure User Assigned Managed Identity, and sets credentials to manage access to the cluster.

## Deploying the App

To deploy your infrastructure, follow the below steps.

### Prerequisites

1. [Install Pulumi](https://www.pulumi.com/docs/get-started/install/)
1. [Configure Azure Credentials](https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/)

### Steps

After cloning this repo, from this working directory, run these commands:

1. Create a new stack, which is an isolated deployment target for this example:

```bash
$ pulumi stack init dev
```

1. Set the Azure region location to use:

```
$ pulumi config set azure-native:location westus2
```

1. Stand up the cluster by invoking pulumi
```bash
$ pulumi up
```

1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:
```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```
Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
```bash
$ KUBECONFIG=./kubeconfig.yaml kubectl get nodes
```
1. From there, feel free to experiment. Simply making edits and running `pulumi up` will incrementally update your stack.
1. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
```bash
$ pulumi destroy --yes
$ pulumi stack rm --yes
```

0 comments on commit a9b0211

Please sign in to comment.