use correct k3s dir
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
k3sDir = ./k3s;
|
||||||
opts = config.services.nimh-static;
|
opts = config.services.nimh-static;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -50,11 +51,11 @@
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = pkgs.writeShellScript "start-nimh-static" ''
|
ExecStart = pkgs.writeShellScript "start-nimh-static" ''
|
||||||
echo "Creating temp dir"
|
echo "Creating temp dir"
|
||||||
kubernetes_config=$(mktemp)
|
kubernetes_config=$(mktemp -d)
|
||||||
echo "Generating templated files"
|
echo "Generating templated files"
|
||||||
ls -a
|
echo "${k3sDir}"
|
||||||
gomplate=${pkgs.gomplate}/bin/gomplate
|
gomplate=${pkgs.gomplate}/bin/gomplate
|
||||||
$gomplate --input-dir=./k3s --output-dir=$kubernetes_config
|
$gomplate --input-dir=${k3sDir} --output-dir=$kubernetes_config
|
||||||
echo "Applying k3s config"
|
echo "Applying k3s config"
|
||||||
kubectl=${pkgs.kubectl}/bin/kubectl
|
kubectl=${pkgs.kubectl}/bin/kubectl
|
||||||
$kubectl apply -k $kubernetes_config
|
$kubectl apply -k $kubernetes_config
|
||||||
|
|||||||
Reference in New Issue
Block a user