Ingress Svcs: http://containerops.org/2017/01/30/kubernetes-services-and-ingress-under-x-ray/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Resource Group | |
az group create --name k8s --location eastus | |
# Register container service if not already done | |
az provider register -n Microsoft.ContainerService | |
# Create AKS Cluster | |
az aks create -n k8s-cluster -g k8s -c 2 -k 1.9.2 --generate-ssh-keys -l eastus --service-principal SERVICE_PRINCIPAL --client-secret CLIENT_SECRET | |
# Get kubectl credentials |
I hereby claim:
- I am mattmencel on github.
- I am mattmencel (https://keybase.io/mattmencel) on keybase.
- I have a public key ASAX5N5kGMWuDCU0j85TI3vIU7T1CeIKoE-rV3s8djpffQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
- repo: self | |
queue: | |
name: Hosted Windows Container | |
steps: | |
- task: AzureKeyVault@1 | |
displayName: 'Azure Key Vault: MYKEYVAULT' | |
inputs: | |
azureSubscription: 'My Sub' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: $(BuildDefinitionName).$(DayOfYear)$(Rev:.r) | |
resources: | |
repositories: | |
- repository: Templates | |
type: git | |
name: Templates | |
pool: | |
name: Terraform Agents | |
trigger: | |
batch: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- task: JamiePhillips.Terraform.TerraformTool.TerraformTool@0 | |
displayName: 'Use Terraform $(terraform.version)' | |
inputs: | |
version: '$(terraform.version)' | |
- script: | | |
az login --service-principal -u $(SPN-ID) -p $(SPN-SECRET) --tenant $(TENANT-ID) | |
ACCESS_KEY=`az storage account keys list -n $(STORAGE_ACCT) -o json | jq -r '.[0].value'` | |
echo "##vso[task.setvariable variable=ACCESS_KEY]$ACCESS_KEY" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
- repo: self | |
clean: true | |
queue: | |
name: Hosted Ubuntu 1604 | |
trigger: | |
batch: true | |
branches: | |
include: | |
- master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- script: | | |
echo "Compressing $(terraform.path) directory..." | |
tar -czf $(state.key).tar.gz -C $(terraform.path) . | |
displayName: 'Compress $(terraform.path) Artifact' | |
- task: PublishBuildArtifacts@1 | |
displayName: 'Publish Artifact: $(state.key).tfplan' | |
inputs: | |
PathtoPublish: '$(state.key).tar.gz' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#~/.config/omf/init.fish | |
set -g theme_display_k8s_context yes | |
set -g theme_display_ruby no | |
set -g theme_display_user yes | |
set -g theme_display_hostname yes | |
set -g theme_powerline_fonts no | |
set -g theme_nerd_fonts yes | |
set -g theme_newline_cursor yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "disks", | |
"name": "Standard_LRS", | |
"tier": "Standard", | |
"size": "S4", | |
"locations": [ | |
"centralus" | |
], | |
"locationInfo": [ | |
{ |