This file contains 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
// vim: syntax=bash | |
# Based on Nginx stable repo | |
# | |
helm repo add nginx-stable https://helm.nginx.com/stable | |
helm repo update | |
helm install nginx-stable/nginx-ingress --name <name> --namespace <namespace> --set controller.service.loadBalancerIP="<ip address>" --set controller.replicaCount=1 | |
# Based on Helm default stable repo | |
# | |
helm install stable/nginx-ingress --name <name> --namespace <namespace> --set controller.service.loadBalancerIP="<ip address>" --set controller.replicaCount=1 |
This file contains 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
// vim: syntax=bash | |
k patch deployment <servicename> -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}" |
This file contains 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
// vim: syntax=bash | |
curl -v -k --resolve <dns name>:<port>:<ip address> http://<dns name>/whatever |
This file contains 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
// vim: syntax=bash | |
az aks get-credentials --name <clustername> --resource-group <rg name> |
This file contains 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
// vim: syntax=bash | |
helm init --service-account tiller | |
helm repo update |
This file contains 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
// vim: syntax=bash | |
// All pods with "application" in the name | |
for app in `kgp|grep application|awk '{print $1;}'`; do kdelp $app; done |
This file contains 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
// vim: syntax=bash | |
# Get the id of the service principal configured for AKS | |
CLIENT_ID=$(az aks show -g <resource group> -n <aks cluster> --query "servicePrincipalProfile.clientId" --output tsv) | |
# Get the ACR registry resource id | |
ACR_ID=$(az acr show -g <resource group> -n <name acr> --query "id" --output tsv) | |
# Create role assignment | |
az role assignment create --assignee $CLIENT_ID --role acrpull --scope $ACR_ID |
This file contains 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
// vim: syntax=bash | |
az container create --resource-group <resource-group> --file create-azure-container-instance.yaml |
This file contains 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
// vim: syntax=bash | |
git checkout -b your-new-branch | |
git add . | |
git commit -m "Your commit message" | |
git push origin your-new-branch |
This file contains 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
// vim: syntax=bash | |
mongoimport --db <dbname> --jsonArray --username <username> --password <passwd> --authenticationDatabase admin --drop --file <filename>.json --collection <collectionname> |
OlderNewer