mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-17 06:29:09 +01:00
Add nix-infra-machine
This commit is contained in:
1 parent
28ea6f4a47
commit
1034986fa1
79 files changed
+14465
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
# Enable MinIO standalone instance using native NixOS service
|
||||
config.infrastructure.minio = {
|
||||
enable = true;
|
||||
bindToIp = "127.0.0.1";
|
||||
apiPort = 9002;
|
||||
consolePort = 9003;
|
||||
dataDir = [ "/var/lib/minio/data" ];
|
||||
configDir = "/var/lib/minio/config";
|
||||
rootCredentialsSecretName = "minio-root-credentials";
|
||||
region = "us-east-1";
|
||||
browser = true;
|
||||
};
|
||||
|
||||
# Install MinIO client and utilities for testing
|
||||
config.environment.systemPackages = with pkgs; [
|
||||
minio-client
|
||||
curl
|
||||
jq
|
||||
];
|
||||
|
||||
# Open firewall for MinIO (only if external access needed)
|
||||
# config.networking.firewall.allowedTCPPorts = [ 9002 9003 ];
|
||||
}
|
||||
Reference in new issue
Block a user