Skip to content

Instantly share code, notes, and snippets.

View RafalSkolasinski's full-sized avatar
🛠️

Rafal Skolasinski RafalSkolasinski

🛠️
  • Neo4j
  • London, United Kingdom
  • 08:46 (UTC)
View GitHub Profile
@RafalSkolasinski
RafalSkolasinski / create_or_update.go
Created October 17, 2024 23:25
Go: CreateOrUpdate from multi-resource YAML
package main
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"log"
"os"
@RafalSkolasinski
RafalSkolasinski / metallb-macos.md
Last active October 8, 2024 08:59
Kind & Minikube with MetalLB on MacOS

Dev K8s Networking on MacOS

Context

Unlike Linux on MacOS Docker runs inside VM. This causes issues when trying to access containers directly as their IP is not reachable from host network. It is especially annoying when trying to get a local development environment for K8s.

This short guides aim to solve the problem. Solution is: https://github.com/chipmk/docker-mac-net-connect

@RafalSkolasinski
RafalSkolasinski / readme.md
Last active April 22, 2023 14:22
K3s, Docker & Core V2

K3s-based setup for Core V2 with Docker runtime

Context

Using docker runtime with K3s allows to re-use local Docker images. This give better experience when working with big Docker images (like Triton) as one can avoid:

  • docker pulls from inside kind cluster
  • still expensive kind load ... operations
@RafalSkolasinski
RafalSkolasinski / list.sh
Created January 29, 2023 22:14
List K3s versions from GH tags
gh api --paginate -H "Accept: application/vnd.github.v3+json" /repos/k3s-io/k3s/tags --jq .[].name | grep v1.22 | head
@RafalSkolasinski
RafalSkolasinski / click-requests.py
Last active January 29, 2023 21:39
Send some simple REST requests with click CLI
import click
import requests
import json
import gzip
@click.group()
def cli():
pass