Add cert-manager to startup process
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user