feat(examples/nginx-deployment): minor refactor, fixes and e2e test

This commit is contained in:
Jaka Hudoklin 2019-03-07 23:24:28 +01:00
parent eac2d78667
commit fc9abaa519
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
4 changed files with 54 additions and 14 deletions

View file

@ -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";
};
};
};