Skip to content

Latest commit

 

History

History

05-app-services

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Deploy

App Services - Azure

Deploy App Services in the AKS cluster.

Check out the Crosswalk Guide on this stack for more details.

Deploying the Stack

To deploy your infrastructure, follow the below steps.

Prerequisites

  1. Get Started with Kubernetes on Pulumi

Steps

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

  1. Install the required Node.js packages:

    $ npm install
  2. Create a new stack, which is an isolated deployment target for this example:

    $ pulumi stack init
  3. Collect any stack configuration references to configure the stack in the next step.

    To get the Pulumi Stack Reference of a dependent stack, reference it in the config using the format: <org_or_username>/<project>/<stack> e.g. myUser/myProject/dev01

    You can retrieve the Stack's reference name by running pulumi stack ls in the stack, and extracting it's stack URI.

    The stack reference for the example below is: myUser/k8s-az-identity/dev-1573587501

    user@pulumi:~/pulumi/kubernetes-guides/azure/01-identity$ pul stack ls
    NAME             LAST UPDATE    RESOURCE COUNT  URL
    dev-1573587501*  4 minutes ago  13              https://app.pulumi.com/myUser/k8s-az-identity/dev-1573587501
  4. Configure the stack.

    $ pulumi config set azure:location westus2
    $ pulumi config set k8s-az-apps-svcs:identityStackRef myUser/k8s-az-infra/dev-1573591518 && \
    $ pulumi config set k8s-az-cl-svcs:infraStackRef myUser/k8s-az-infra/dev-1573591518
    $ pulumi config set k8s-az-cl-svcs:clusterStackRef myUser/k8s-az-cluster/dev-1573591790
  5. Update the stack.

    $ pulumi up
  6. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:

    $ pulumi destroy --yes
    $ pulumi stack rm --yes