Add Ansible playbook to configure PiKVM

Add Nix shell to flake
Monitor PiKVM with Prometheus
Serve Prometheus on /
This commit is contained in:
Pim Kunis 2024-08-30 17:49:11 +02:00
parent 04439a9ee5
commit b139f3d469
14 changed files with 82 additions and 18 deletions

View file

@ -122,7 +122,7 @@
spec = {
containers.postgres = {
image = myLib.globals.images.atticPostgres;
image = myLib.globals.images.postgres15;
imagePullPolicy = "IfNotPresent";
ports.postgres.containerPort = 5432;

View file

@ -51,7 +51,7 @@
};
database = {
image = myLib.globals.images.atuinPostgres;
image = myLib.globals.images.postgres14;
ports.web.containerPort = 5432;
env = {

View file

@ -88,7 +88,7 @@
spec = {
containers.postgres = {
image = myLib.globals.images.hedgedocPostgres;
image = myLib.globals.images.postgres15;
imagePullPolicy = "IfNotPresent";
ports.postgres.containerPort = 5432;

View file

@ -82,7 +82,7 @@
volumes.cache.persistentVolumeClaim.claimName = "cache";
containers.machine-learning = {
image = myLib.globals.images.immichML;
image = myLib.globals.images.immich-machine-learning;
imagePullPolicy = "IfNotPresent";
ports.ml.containerPort = 3003;
env.MACHINE_LEARNING_WORKER_TIMEOUT.value = "600";
@ -119,7 +119,7 @@
spec = {
containers.redis = {
image = myLib.globals.images.immichRedis;
image = myLib.globals.images.immich-redis;
ports.redis.containerPort = 6379;
imagePullPolicy = "IfNotPresent";
};
@ -152,7 +152,7 @@
volumes.data.persistentVolumeClaim.claimName = "database";
containers.postgres = {
image = myLib.globals.images.immichPostgres;
image = myLib.globals.images.immich-postgres;
imagePullPolicy = "IfNotPresent";
command = [ "postgres" ];
args = [ "-c" "shared_preload_libraries=vectors.so" "-c" "search_path=\"$$user\", public, vectors" "-c" "logging_collector=on" "-c" "max_wal_size=2GB" "-c" "shared_buffers=512MB" "-c" "wal_compression=on" ];

View file

@ -79,7 +79,7 @@
spec = {
containers.postgres = {
image = myLib.globals.images.nextcloudPostgres;
image = myLib.globals.images.postgres15;
imagePullPolicy = "IfNotPresent";
ports.postgres.containerPort = 5432;

View file

@ -65,7 +65,7 @@
};
};
tailscaleIngresses.tailscale = {
tailscaleIngresses.traefik-dashboard = {
host = "traefik";
service.name = "traefik-dashboard";
};