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
[user] | |
email = [email protected] | |
name = Paulo Gomes | |
# signingkey = 08523F6EF8967D22 | |
[alias] | |
co = checkout | |
# cms = commit -S -m | |
cm = commit -m | |
d = diff | |
s = status |
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
# return all web sites | |
az resource list --resource-type "Microsoft.Web/sites" --query "[].id" --output tsv | | |
# query azure for each resource | |
xargs az resource show --ids | | |
# define output | |
jq -r '.[].siteProperties.properties // .[].properties | .enabledHostNames[] // .hostNames | match("^((?!scm).)*$").string' | |
# return all cloud services | |
az resource list --resource-type "Microsoft.ClassicCompute/domainNames" --query "[].id" --output tsv | |
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
{ | |
"kind": "PodList", | |
"apiVersion": "v1", | |
"metadata": { }, | |
"items": [{ | |
"metadata": { | |
"name": "heapster-4637824328-zpckl", "namespace": "kube-system", "uid": "XXXXX-XXXX-XXX-XXXXXXXX", "creationTimestamp": null | |
}, "spec": { | |
"containers": [{ | |
"name": "heapster-nanny", "image": "k8s-gcrio.azureedge.net/addon-resizer@sha256:dcec9a5c2e20b8df19f3e9eeb87d9054a9e94e71479b935d5cfdbede9ce15895", "resources": {} |
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
{ | |
"compute": | |
{ | |
"location": "westeurope", | |
"name": "aks-nodepool1-XXXXXXXXXX-1", | |
"offer": "UbuntuServer", | |
"osType": "Linux", | |
"placementGroupId": "", | |
"platformFaultDomain": "0", | |
"platformUpdateDomain": "2", |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: default | |
automountServiceAccountToken: false |
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
# Login with your Azure subscription | |
az login | |
# Register providers required within the subscription | |
az provider register -n Microsoft.ContainerService | |
az provider register -n Microsoft.Network | |
az provider register -n Microsoft.Compute | |
# Create resource group to place AKS cluster. | |
az group create --name k8s-security-challenge-rg --location centralus |
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
version: 2 | |
jobs: | |
build_test_publish_image: | |
docker: | |
- image: paulinhu/netcore-docker-build:beta | |
environment: | |
ACR_NAME: akspoc | |
DOCKER_REGISTRY_URI: akspoc.azurecr.io | |
DOCKER_IMAGE_NAME_WITH_REGISTRY: akspoc.azurecr.io/template/sample-app-img |
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
version: 2 | |
jobs: | |
provision_cluster: | |
docker: | |
- image: azuresdk/azure-cli-python | |
environment: | |
RESOURCE_GROUP: aks-poc-euw-rg | |
CLUSTER_LOCATION: westeurope | |
CONTAINER_REPOSITORY: akspoc |
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
[assembly: PreApplicationStartMethod(typeof(ZombieActivator), "Run")] | |
public static class ZombieActivator | |
{ | |
public static void Run() | |
{ | |
try | |
{ | |
if (IsThisLikelyToBeProductionEnvironment()) | |
System.Web.HttpApplication.RegisterModule(typeof(ZombieModule)); | |
} |