debugging logging
This commit is contained in:
@@ -49,11 +49,15 @@
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = pkgs.writeShellScript "start-nimh-static" ''
|
ExecStart = pkgs.writeShellScript "start-nimh-static" ''
|
||||||
|
echo "Creating temp dir"
|
||||||
kubernetes_config=$(mktemp)
|
kubernetes_config=$(mktemp)
|
||||||
|
echo "Generating templated files"
|
||||||
|
ls -a
|
||||||
gomplate=${pkgs.gomplate}/bin/gomplate
|
gomplate=${pkgs.gomplate}/bin/gomplate
|
||||||
$gomplate --input-dir=./k3s --output-dir=$kubernetes_config
|
$gomplate --input-dir=./k3s --output-dir=$kubernetes_config
|
||||||
|
echo "Applying k3s config"
|
||||||
kubectl=${pkgs.kubectl}/bin/kubectl
|
kubectl=${pkgs.kubectl}/bin/kubectl
|
||||||
$kubectl apply -k $out
|
$kubectl apply -k $kubernetes_config
|
||||||
'';
|
'';
|
||||||
|
|
||||||
User = "nimh";
|
User = "nimh";
|
||||||
|
|||||||
Reference in New Issue
Block a user