Skip to content

Instantly share code, notes, and snippets.

View alpeb's full-sized avatar
😙

Alejandro Pedraza alpeb

😙
View GitHub Profile
[package]
name = "ext-ns-metadata"
version = "0.1.0"
authors = ["Linkerd Authors <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
publish = false
[dependencies]
anyhow = "1"
@alpeb
alpeb / flat-network.sh
Last active May 9, 2024 11:26
2 k3d clusters with 3 nodes each, using the same flat network
#!/usr/bin/env bash
zones=(a b c)
cluster_cidr() {
echo "apiVersion: networking.k8s.io/v1alpha1
kind: ClusterCIDR
metadata:
name: new-cidr
spec:
@alpeb
alpeb / main.rs
Created November 27, 2023 14:15
linkerd-reinitialize-pods
use anyhow::{bail, Result};
use clap::Parser;
use futures_util::StreamExt;
use kube::runtime::watcher;
use k8s_openapi::api::core::v1::Pod;
#[derive(Parser)]
#[command(version)]
struct Args {
#[arg(