mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(examples/nginx-deployment): minor refactor, fixes and e2e test
This commit is contained in:
parent
eac2d78667
commit
fc9abaa519
4 changed files with 54 additions and 14 deletions
|
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, pkgs, test, kubenix, ... }:
|
||||
{ config, lib, pkgs, kubenix, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
nginx = pkgs.callPackage ./image.nix { };
|
||||
nginx = pkgs.callPackage ./image.nix { };
|
||||
in {
|
||||
imports = [ kubenix.module ];
|
||||
|
||||
|
|
@ -23,8 +23,8 @@ in {
|
|||
volumeMounts."/etc/nginx".name = "config";
|
||||
volumeMounts."/var/lib/html".name = "static";
|
||||
};
|
||||
volumes.config.persistentVolumeClaim.claimName = "config";
|
||||
volumes.static.persistentVolumeClaim.claimName = "static";
|
||||
volumes.config.configMap.name = "nginx-config";
|
||||
volumes.static.configMap.name = "nginx-static";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue