Skip to content

Instantly share code, notes, and snippets.

@ddtmachado
ddtmachado / README.md
Created December 21, 2022 12:46
Traefik v2 to v3 parallel CRD migration

For this test I used k3d with the following start options:

k3d cluster create \
    "trk" \
    --agents 2 \
    --port="80:80@loadbalancer" \
    --port="443:443@loadbalancer" \
    --k3s-arg="--disable=traefik@server:0" \
    --image "rancher/k3s:v1.20.15-k3s1-amd64"
@ddtmachado
ddtmachado / tee-swarm-install.sh
Last active December 5, 2019 20:10
TraefikEE install helper for swarm
#!/bin/bash
set -o pipefail
set -o errexit
readonly TEE_STACK_NAME=${TEE_STACK_NAME:-traefikee}
readonly TEE_CTL_BIN=${TEE_CTL_BIN:-teectl}
readonly TEMP_DIR=${TEMP_DIR:-/tmp}
readonly SWARM_RESOLVE_IMAGE=${SWARM_RESOLVE_IMAGE:-never}
readonly SWARM_SERVICE_RETRY_COUNT=${SWARM_SERVICE_RETRY_COUNT:-3}
@ddtmachado
ddtmachado / Running traefikee on minikube
Last active July 26, 2019 18:09
Running traefikee on minikube
.
@ddtmachado
ddtmachado / azureBus.go
Created June 5, 2019 17:50
Example for using Azure Service Bus through go with autorest
package main
import (
"flag"
"fmt"
"os"
"github.com/Azure/azure-sdk-for-go/arm/servicebus"
"github.com/Azure/go-autorest/autorest"
@ddtmachado
ddtmachado / es-local-restore
Created May 22, 2019 17:46
Script to setup a single node elastic search and configure both a local (folder) and remote (AWS S3) repository intended to test/restore snapshots
#!/bin/bash
set -o errexit
set -o pipefail
export AWS_BUCKET="my-bucket-name"
export AWS_REGION="us-east-1"
export AWS_ACCESS_KEY_ID="my-access-key-id"
export AWS_ACCESS_KEY_SECRET="my-access-key-secret"
export AWS_REGION_ENDPOINT="https://s3.$AWS_REGION.amazonaws.com"
export ES_DOCKER_VERSION="elasticsearch-oss:6.3.2"

Keybase proof

I hereby claim:

  • I am ddtmachado on github.
  • I am ddtmachado (https://keybase.io/ddtmachado) on keybase.
  • I have a public key ASBoipQ8fvqnecnYRtksRDg9536G1irhiqeBrkfhIdXPRQo

To claim this, I am signing this object: