Skip to content

Instantly share code, notes, and snippets.

View gdamjan's full-sized avatar

Дамјан Георгиевски gdamjan

View GitHub Profile
@gdamjan
gdamjan / README.md
Last active November 1, 2024 13:52 — forked from gdamjan-loka/README.md
Local Docker registry running in Kubernetes / k3s

Install a docker registry in a k3s kubernetes cluster

k3s doesn't have a builtin plugin for a local registry, so this is how to install the docker registry. The registry will be exposed via the default traefik ingress (on port 80 and 443).

Assumptions

  • resolvectl query registry.localhost returns 127.0.0.1 - on most Linux distros it does. If not, enable and configure systemd-resolved
  • K3s comes with traefik ingress controller by default, so the ingress for the registry service is configured for that.
@gdamjan
gdamjan / reduced_test_case.erl
Created March 31, 2012 02:06 — forked from manpages/reduced_test_case.erl
Yet Another Erlang/Unicode Fuckup
-module(reduced_test_case).
-define(NODEBUG, 1).
-include_lib("eunit/include/eunit.hrl").
-behavior(gen_server).
%-compile(export_all).
-export([init/1, code_change/3, handle_call/3, handle_cast/2, handle_info/2, terminate/2]).
-export([start/0]).