this repo has no description
0
fork

Configure Feed

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

refactor(fluxcd): use in-cluster OCI registry for GitOps

+9 -10
+9 -10
infra/_modules/nixos/profiles/k3s-addons.nix
··· 56 56 content = [ 57 57 { 58 58 apiVersion = "source.toolkit.fluxcd.io/v1"; 59 - kind = "GitRepository"; 59 + kind = "OCIRepository"; 60 60 metadata = { 61 - name = "gitops"; 61 + name = "platform"; 62 62 namespace = "flux-system"; 63 63 }; 64 64 spec = { 65 - interval = "1m"; 66 - # TODO use internal URL 67 - # url = "http://forgejo-http.forgejo.svc.cluster.local:3000/khuedoan/cloudlab"; 68 - url = "https://code.khuedoan.com/khuedoan/cloudlab"; 65 + interval = "30s"; 66 + url = "oci://registry.registry.svc.cluster.local:5000/platform"; 67 + insecure = true; 69 68 ref = { 70 - branch = "master"; 69 + tag = "latest"; 71 70 }; 72 71 }; 73 72 } ··· 80 79 }; 81 80 spec = { 82 81 interval = "1m"; 83 - path = "platform/staging"; 82 + path = "."; 84 83 prune = true; 85 84 sourceRef = { 86 - kind = "GitRepository"; 87 - name = "gitops"; 85 + kind = "OCIRepository"; 86 + name = "platform"; 88 87 }; 89 88 }; 90 89 }