Skip to content

Instantly share code, notes, and snippets.

View angeloskaltsikis's full-sized avatar

Angelos Kaltsikis angeloskaltsikis

View GitHub Profile
@angeloskaltsikis
angeloskaltsikis / kafka-move-leadership.sh
Created September 27, 2021 13:32 — forked from miguno/kafka-move-leadership.sh
A simple Ops helper script for Apache Kafka to generate a partition reassignment JSON snippet for moving partition leadership away from a given Kafka broker. Use cases include 1) safely restarting a broker while minimizing risk of data loss, 2) replacing a broker, 3) preparing a broker for maintenance.
#!/usr/bin/env bash
#
# File: kafka-move-leadership.sh
#
# Description
# ===========
#
# Generates a Kafka partition reassignment JSON snippet to STDOUT to move the leadership
# of any replicas away from the provided "source" broker to different, randomly selected
# "target" brokers. Run this script with `-h` to show detailed usage instructions.
@angeloskaltsikis
angeloskaltsikis / mirrormaker2-plaintext-with-metrics.yaml
Last active November 18, 2020 14:17
MirrorMaker 2.0 (based on Kafka 2.7) for Strimzi
apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaMirrorMaker2
metadata:
name: my-mirror-maker-2
spec:
version: 2.6.0
replicas: 1
# Custom Image that includes MirrorMaker 2.0 (based on Kafka 2.7 SNAPSHOT) for offset sync & translation
image: <custom_strimzi_image_based_on_Kafka_2.7_bin>
connectCluster: "msk"
@angeloskaltsikis
angeloskaltsikis / Dockerfile
Last active April 26, 2023 10:14 — forked from dmattia/terragrunt_light.js
A wrapper to make Terragrunt less verbose (both plan & apply supported). Also includes all the files required to efficiently run Terragrunt with Atlantis.
ARG atlantis_version=v0.15.0
FROM runatlantis/atlantis:${atlantis_version}
LABEL maintainer="Beat DevOps Team"
LABEL description="thebeat.co atlantis image used in IaC CI/CD!"
LABEL version="0.2"
# https://github.com/gruntwork-io/terragrunt/releases
ARG terragrunt_version=v0.25.1