Add cert-manager to startup process

This commit is contained in:
Greg Hellings
2025-09-11 21:39:53 -05:00
parent a573f12221
commit 305ca30ad5
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -6,7 +6,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Change to the script directory # Change to the script directory
cd "$SCRIPT_DIR" cd "$SCRIPT_DIR"
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yaml
kubectl apply -f helm/flux.yaml kubectl apply -f helm/flux.yaml
sleep 5 sleep 5
kubectl apply -f helm/kyverno.yaml kubectl apply -f helm/kyverno.yaml
+4
View File
@@ -6,6 +6,9 @@
}: }:
let let
cfg = config.greg.kubernetes; cfg = config.greg.kubernetes;
cert-manager = pkgs.fetchurl {
url = "https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yaml";
};
in in
{ {
options.greg = { options.greg = {
@@ -82,6 +85,7 @@ in
"--tls-san ${config.networking.hostName}.shire-zebra.ts.net" "--tls-san ${config.networking.hostName}.shire-zebra.ts.net"
]; ];
manifests = { manifests = {
cert-manager.source = cert-manager;
node-annotations.content = ../../manifests/nodes.yaml; node-annotations.content = ../../manifests/nodes.yaml;
}; };
role = if cfg.agentOnly then "agent" else "server"; role = if cfg.agentOnly then "agent" else "server";