this repo has no description
0
fork

Configure Feed

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

feat(infra): install registry with Nix

Maybe everything else can be done with Nix?

Khue Doan ace48f0f c12b2aa2

+36
+24
infra/_modules/nixos/profiles/k3s-addons.nix
··· 15 15 --export > $out/flux.yaml 16 16 ''; 17 17 }; 18 + registry-namespace = { 19 + content = { 20 + apiVersion = "v1"; 21 + kind = "Namespace"; 22 + metadata = { 23 + name = "registry"; 24 + }; 25 + }; 26 + }; 27 + registry = { 28 + source = pkgs.runCommand "registry-install-manifest" { 29 + nativeBuildInputs = [ pkgs.kubernetes-helm ]; 30 + } '' 31 + mkdir -p $out 32 + helm template --skip-tests registry ${ 33 + pkgs.fetchurl { 34 + url = "https://github.com/project-zot/helm-charts/releases/download/zot-0.1.67/zot-0.1.67.tgz"; 35 + sha256 = "118js6m16fvzxxjznydjp6kip67548s6l47zvp0fjjsz9fzz438r"; 36 + } 37 + } \ 38 + --namespace registry \ 39 + --values ${./values/registry.yaml} > $out/registry.yaml 40 + ''; 41 + }; 18 42 }; 19 43 }; 20 44 };
+12
infra/_modules/nixos/profiles/values/registry.yaml
··· 1 + nameOverride: registry # Otherwise it will render registry-zot as the service name 2 + image: 3 + repository: ghcr.io/project-zot/zot 4 + podLabels: 5 + istio.io/dataplane-mode: ambient 6 + service: 7 + type: ClusterIP 8 + clusterIP: fd6a:7c7b:3e12:100::f # TODO don't hard code? 9 + persistence: true 10 + pvc: 11 + create: true 12 + storage: 10Gi