The following are the basic requirements to start the workshop.
- Azure Account Azure Portal
- Git Git SCM
- Azure Cloud Shell https://shell.azure.com
-
Login to Azure Portal at http://portal.azure.com.
-
Open the Azure Cloud Shell and choose Bash Shell (do not choose Powershell)
-
The first time Cloud Shell is started will require you to create a storage account.
-
Once your cloud shell is started, clone the workshop repo into the cloud shell environment
git clone https://github.com/tigera-solutions/cc-aks-compliance.git && \ cd cc-aks-compliance
Note: In the cloud shell, you are automatically logged into your Azure subscription.
-
Ensure you are using the correct Azure subscription you want to deploy AKS to.
View subscriptions
az account list
Verify selected subscription
az account show
Set correct subscription (if needed)
az account set --subscription <subscription_id>
Verify correct subscription is now set
az account show
-
Configure the kubectl autocomplete.
source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.
You can also use a shorthand alias for kubectl that also works with completion:
alias k=kubectl complete -o default -F __start_kubectl k echo "alias k=kubectl" >> ~/.bashrc echo "complete -o default -F __start_kubectl k" >> ~/.bashrc