Skip to content

Instantly share code, notes, and snippets.

View zloeber's full-sized avatar

Zachary Loeber zloeber

View GitHub Profile
@zloeber
zloeber / kured-helmfile.yml
Created March 14, 2020 18:27
kured-helmfile
helmDefaults:
tillerless: true
tillerNamespace: platform
atomic: true
verify: false
wait: false
timeout: 600
recreatePods: false
force: true
@zloeber
zloeber / gist:e90da169dec0ec0c96fffd457ef5b33a
Created January 16, 2020 03:19
ado-linked-var-group-5
#!/bin/bash
SC_NAME=${SC_NAME:-"Service Connection Name"}
KEYVAULTNAME=${KEYVAULTNAME:-"keyvault"}
AZ_SUBSCRIPTION=${AZ_SUBSCRIPTION:-"Azure Subscription"}
AZ_SUBSCRIPTION_ID=${AZ_SUBSCRIPTION_ID:-"Azure Subscription ID"}
ADO_ORG=${ADO_ORG:-"https://dev.azure.com/myorgname"}
ADO_PROJECT=${ADO_PROJECT:-"MyProject"}
SECRET_TEMPLATE=${SECRET_TEMPLATE:-"./secret-var-group.tpl"}
echo "STAGE: ${STAGE}"
@zloeber
zloeber / gist:1a983fe6747666abaa30d389f66ae99b
Created January 16, 2020 02:37
ado-linked-var-group-4
{
"authorized": true,
"description": "${description}",
"name": "${name}",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "${project_id}",
"name": "${project_name}"
@zloeber
zloeber / gist:445233e082f0b4252563e5fc368baffc
Created January 16, 2020 02:35
ado-linked-var-group-3
{
"authorized": true,
"description": "SuperSecret Variable Group (SuperSecretVault)",
"name": "SuperSecret",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "MyADOProject"
@zloeber
zloeber / gist:a24ddd928e11f444815c11a5f9b25d63
Last active January 16, 2020 03:18
ado-linked-var-group-2
AZ_SUBSCRIPTION=<subscription name>
AZ_SUBSCRIPTION_ID=<subscription id>
ADO_ORG=<ADO Org Name>
ADO_PROJECT=<ADO Project Name>
KEYVAULTNAME=<Key Vault to link ADO Group with>
SC_NAME=<service connection name>
@zloeber
zloeber / gist:f55f1ca6e0650057353a0f843d6d0524
Created January 16, 2020 02:31
ado-linked-var-groups-1
az extension add --name azure-devops
@zloeber
zloeber / gist:097771685b5be81203fab3f3f796dd2f
Created January 2, 2020 19:14
Helm: helm-git plugin install
helm plugin install https://github.com/aslafy-z/helm-git.git
@zloeber
zloeber / gist:991ba9c30adabd8041aea0e918f08493
Created January 2, 2020 19:13
helm: helm-namespace plugin install
plugin install https://github.com/thomastaylor312/helm-namespace
@zloeber
zloeber / gist:b8e2f06a4198ef3a2db81532838d6a03
Created January 2, 2020 19:11
Helmfile: presync hook namespace creation
- events: ["presync"]
showlogs: true
command: "/bin/sh"
args:
- "-c"
- >-
kubectl get namespace "{{`{{ .Release.Namespace }}`}}" >/dev/null 2>&1 || kubectl create namespace "{{`{{ .Release.Namespace }}`}}";
@zloeber
zloeber / gist:e280030aa819be22653809bb1d353c0d
Created January 2, 2020 19:10
helmfile: Cert-manager example
helmDefaults:
tillerless: true
tillerNamespace: platform
atomic: false
verify: false
wait: true
timeout: 1200
recreatePods: true
force: true