Files
nixos/manifests/apply.sh
T

32 lines
979 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Change to the script directory
cd "$SCRIPT_DIR"
2025-07-03 01:36:59 -05:00
# First, label the nodes to control Longhorn rollout
for n in isaiah jeremiah zeke; do
kubectl label nodes "${n}" "node.longhorn.io/create-default-disk=config"
done
# Now, configure longhorn settings for each node
kubectl annotate nodes isaiah 'node.longhorn.io/default-disks-config=[
{ "path": "/var/lib/longhorn", "allowScheduling" : true }
]'
kubectl annotate nodes jeremiah 'node.longhorn.io/default-disks-config=[
{ "path": "/var/lib/longhorn", "allowScheduling" : true }
]'
kubectl annotate nodes zeke 'node.longhorn.io/default-disks-config=[
{ "path": "/var/lib/longhorn", "allowScheduling" : true }
]'
kubectl apply -k namespaces
2025-05-27 19:16:11 -05:00
kubectl apply -f helm/flux.yaml
2025-05-26 17:10:01 -05:00
sleep 5
2025-07-03 01:36:59 -05:00
kubectl apply -f helm/kyverno.yaml
sleep 15
2025-05-27 19:16:11 -05:00
kubectl apply -k helm
2025-05-26 17:10:01 -05:00
sleep 5
2025-06-11 03:16:16 -05:00
kubectl apply -k .