Skip to content

Latest commit

 

History

History
 
 

inner-loop-scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Deploy Scripts

Note: This is part of the Azure Kubernetes Service (AKS) Baseline Cluster reference implementation. For more information check out the readme file in the root.

While this reference implementation was being developed we built out some inner-loop deployment scripts to help do rapid testing. They are included in this directory for your reference. They are not used as part of the main README.md introduction/instruction, but you can reference them for your own purposes. They may not be functional as they are maintained only opportunistically.

NOTE: For a complete understanding, we recommend you follow the deployment steps for this Reference Implementation using the main README.md steps.

In both the Shell and the .azcli files, you'll also find some "narrative comments" in there that might help you understand some of the thought process that went into this reference implementation. They are not required reading, but might shed light on some decisions made or reasoning behind a certain step.

Shell

A Bash shell-based deployment was built for inner-loop work. This is found in the shell directory.

Important: you must edit these script files to be suitable for your environment and situation.

Deploy

# [This takes thirty minutes to run.]
./shell/0-networking-stamp.sh
./shell/1-cluster-stamp.sh

Clean up

# [This takes twenty minutes to run.]
./shell/deleteResourceGroups.sh

.azcli files

An alternative method was capturing the steps in pure az cli commands, and putting them in .azcli files. This is found in the azcli directory. These files are not directly executable files (no expectation of #! or +x). However, from Visual Studio Code, the Azure CLI Tools extension provides a "right-click run" functionality. The intent was to capture the steps in a completely OS/Shell agnostic approach.

Deploy

  1. Open the azcli directory in Visual Studio Code.
  2. Walk through the az commands found in aad-deploy.azcli.
  3. Walk through the az commands found in network-deploy.azcli, updating variables as needed.
  4. Walk through the az commands found in cluster-deploy.azcli.

Next Steps

Ultimately, as with any solution, we encourage the usage of deployment pipelines in your DevOps tooling of choice. Building scripts like these are great for initial POC/spike work, some inner-loop development work, and can often even help inform the construction of your eventual automated deployment pipelines. We did include a starter GitHub Actions workflow that covers the deployment of the cluster, which you can see in the github-workflow directory.