mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
add helm chart example
This commit is contained in:
parent
54c35f61a0
commit
5c5191680e
3 changed files with 18 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -18,4 +18,4 @@ jobs:
|
||||||
run: nix -Lv flake check
|
run: nix -Lv flake check
|
||||||
|
|
||||||
- name: Check Nix parsing
|
- name: Check Nix parsing
|
||||||
run: nix -Lv develop -c "evalnix"
|
run: nix -Lv develop -c evalnix
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,5 @@
|
||||||
evalModules ? (import ../. {}).evalModules.${system},
|
evalModules ? (import ../. {}).evalModules.${system},
|
||||||
}: {registry ? "docker.io/gatehub"}: {
|
}: {registry ? "docker.io/gatehub"}: {
|
||||||
nginx-deployment = import ./nginx-deployment {inherit evalModules registry;};
|
nginx-deployment = import ./nginx-deployment {inherit evalModules registry;};
|
||||||
|
helm-chart = import ./helm-chart {inherit evalModules;};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
docs/examples/helm-chart/default.nix
Normal file
16
docs/examples/helm-chart/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{evalModules}:
|
||||||
|
(evalModules {
|
||||||
|
module = {kubenix, ...}: {
|
||||||
|
imports = with kubenix.modules; [helm];
|
||||||
|
kubernetes.helm.instances.example = {
|
||||||
|
chart = kubenix.lib.helm.fetch {
|
||||||
|
chart = "nginx";
|
||||||
|
repo = "https://charts.bitnami.com/bitnami";
|
||||||
|
sha256 = "sha256-wP3tcBnySx+kvZqfW2W9k665oi8KOI50tCcAl0g9cuw=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
.config
|
||||||
|
.kubernetes
|
||||||
|
.result
|
||||||
Loading…
Add table
Add a link
Reference in a new issue