This commit is contained in:
2025-09-28 03:36:29 -04:00
parent e85a730391
commit 3c84fc17c6
3 changed files with 30 additions and 23 deletions

View File

@@ -4,16 +4,15 @@
lib,
...
}: {
environment.etc."rancher/k3s/registries.yaml".text = ''
mirrors:
"100.125.181.75:5000":
endpoint:
- http://100.125.181.75:5000/v2
configs:
"100.125.181.75:5000":
tls:
insecure_skip_verify: true
mirrors:
"100.125.181.75:5000":
endpoint:
- http://100.125.181.75:5000/v2
configs:
"100.125.181.75:5000":
tls:
insecure_skip_verify: true
'';
swapDevices = lib.mkForce [];
@@ -29,6 +28,13 @@ configs:
"net.bridge.bridge-nf-call-ip6tables" = 1;
};
};
boot.kernelModules = ["rbd" "nbd" "ceph"];
# Make Ceph user-space tools available on the system
environment.systemPackages = with pkgs; [
];
networking.firewall.enable = false;
# networking.firewall.allowedTCPPorts = [
# 6443 # k3s: required so that pods can reach the API server (running on port 6443 by default)

View File

@@ -4,16 +4,15 @@
lib,
...
}: {
environment.etc."rancher/k3s/registries.yaml".text = ''
mirrors:
"100.125.181.75:5000":
endpoint:
- http://100.125.181.75:5000/v2
configs:
"100.125.181.75:5000":
tls:
insecure_skip_verify: true
mirrors:
"100.125.181.75:5000":
endpoint:
- http://100.125.181.75:5000/v2
configs:
"100.125.181.75:5000":
tls:
insecure_skip_verify: true
'';
swapDevices = lib.mkForce [];
@@ -34,6 +33,8 @@ configs:
kubernetes-helm
];
boot.kernelModules = ["rbd" "nbd" "ceph"];
networking.firewall.enable = false;
# networking.firewall.allowedTCPPorts = [
# 6443 # k3s: required so that pods can reach the API server

View File

@@ -45,15 +45,15 @@
'';
# services.containerd.registryMirrors = {
# # Replace with your registry's address and port
# "100.125.181.75:5000" = {
# endpoint = ["http://100.125.181.75:5000"];
# };
# # Replace with your registry's address and port
# "100.125.181.75:5000" = {
# endpoint = ["http://100.125.181.75:5000"];
# };
# };
virtualisation.containerd.settings = {
plugins."io.containerd.grpc.v1.cri".registry.mirrors."100.125.181.75:5000" = {
endpoint = [ "http://100.125.181.75:5000" ];
endpoint = ["http://100.125.181.75:5000"];
};
plugins."io.containerd.grpc.v1.cri".registry.configs."100.125.181.75:5000".tls.insecure_skip_verify = true;