this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(infra): deploy in-cluster registry with airgap artifacts

Khue Doan bfe983ee 30d4cc26

+49 -1
+49 -1
infra/_modules/nixos/profiles/k3s-addons.nix
··· 13 13 --export > $out/flux.yaml 14 14 ''; 15 15 }; 16 + registry = { 17 + source = pkgs.runCommand "registry-install-manifest" {} '' 18 + mkdir -p $out 19 + 20 + ${pkgs.kubectl}/bin/kubectl create namespace registry \ 21 + --output=yaml \ 22 + --dry-run=client \ 23 + > $out/registry-namespace.yaml 24 + 25 + ${pkgs.kubernetes-helm}/bin/helm template \ 26 + --skip-tests \ 27 + --namespace=registry \ 28 + registry \ 29 + ${pkgs.fetchurl { 30 + url = "https://github.com/project-zot/helm-charts/releases/download/zot-0.1.80/zot-0.1.80.tgz"; 31 + sha256 = "093frrijhycb4dsdwy7h99j5klrphr4xa0chnibmkqiy5znlaf4w"; 32 + }} \ 33 + --version=0.1.67 \ 34 + --values=${pkgs.writeText "values.yaml" (builtins.toJSON { 35 + nameOverride = "registry"; 36 + image = { 37 + repository = "docker.io/khuedoan/zot-airgap"; 38 + }; 39 + mountConfig = true; 40 + configFiles = { 41 + "config.json" = (builtins.toJSON { 42 + storage = { 43 + rootDirectory = "/var/lib/registry"; 44 + subpaths = { 45 + "/vendor" = { 46 + rootDirectory = "/var/lib/registry-airgap"; 47 + }; 48 + }; 49 + }; 50 + http = { 51 + address = "0.0.0.0"; 52 + port = "5000"; 53 + }; 54 + log.level = "debug"; 55 + }); 56 + }; 57 + service = { 58 + type = "ClusterIP"; 59 + }; 60 + })} \ 61 + > $out/registry.yaml 62 + ''; 63 + }; 16 64 gitops = { 17 65 content = [ 18 66 { ··· 28 76 # url = "http://forgejo-http.forgejo.svc.cluster.local:3000/khuedoan/cloudlab"; 29 77 url = "https://code.khuedoan.com/khuedoan/cloudlab"; 30 78 ref = { 31 - branch = "master"; 79 + branch = "fast-cluster"; # TODO back to master ofc 32 80 }; 33 81 }; 34 82 }