Skip to content

Instantly share code, notes, and snippets.

@vyta
vyta / rootless-containerd-wsl.md
Last active July 16, 2025 14:26
Rootless containerd in WSL2 with Ubuntu 24.04

Rootless containerd in WSL

Ensure systemd is enabled for WSL

sudo apt-get update -y && sudo apt-get install systemd systemd-sysv -y

And ensure /etc/wsl.config contains the following:

@vyta
vyta / nerdctl-for-dev-containers.md
Last active July 15, 2025 20:47
Using nerdctl instead of docker for VS Code Dev Containers
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fortio
name: fortio
spec:
replicas: 1
selector:
matchLabels:
@vyta
vyta / kind-azwi.sh
Last active December 5, 2024 02:10
Kind with OIDC issuer tl;dr;
#!/usr/bin/env bash
# Script pre-reqs: az cli (and logged in) and kind (k8s in docker)
export RESOURCE_GROUP="oidc-issuer"
export SUBSCRIPTION_ID="$(az account show --query id -o tsv)"
export AZURE_TENANT_ID="$(az account show --query tenantId -otsv)"
export AZURE_STORAGE_ACCOUNT="oidcissuer$(openssl rand -hex 4)"
export AZURE_STORAGE_CONTAINER="oidc-test"
export SERVICE_ACCOUNT_ISSUER="https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net/${AZURE_STORAGE_CONTAINER}/"

Me as a Lead/Manager

I believe everyone does their best work in an environment of creativity, clarity, and empathy.

  • Creative thinking leads to innovation and more importantly, fun. Try the weird thing--Embrace the unknown and find new (strategically and ethically reasonable) paths to solve problems. I got your back.
  • Clarity of purpose, plans, and responsibilities are non-negotiables for smooth operations. If at any point things start the get too blurry for comfort, let's get it sorted out.
  • Let's not forget that there is indeed a world beyond the team--we are humans dealing with human things, let's treat eachother with kindness and compassion.
What you can expect from me What I ask from you
@vyta
vyta / install-k8s.sh
Last active August 26, 2020 16:56
Script to prep a Debian node for k8s
#!/bin/sh -eux
# Docker
sudo apt-get update
sudo apt-get install -y\
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
@vyta
vyta / 2-worker-public.yaml
Last active May 19, 2020 22:50
Kind configuration with local host and added ip
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
apiServerAddress: "0.0.0.0"
apiServerPort: 6443
kubeadmConfigPatchesJSON6902:
- group: kubeadm.k8s.io
version: v1beta2
kind: ClusterConfiguration
@vyta
vyta / 1-worker.yaml
Created February 3, 2020 19:11
Kind configuration for 1 worker
---
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
@vyta
vyta / configure-kind-cluster.sh
Last active February 5, 2020 23:35
Script to install docker and create kind cluster
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2015 Microsoft Azure
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@vyta
vyta / 2-worker.yaml
Created February 3, 2020 17:30
Kind configuration for 2 workers
---
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker