22 lines
923 B
Bash
Executable File
22 lines
923 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Apply all CTF web-challenge manifests to the cluster.
|
|
# Assumes kubectl is configured against your k3s cluster and Traefik is installed.
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
kubectl apply -f "$DIR/00-namespace.yaml"
|
|
kubectl apply -f "$DIR/01-flags-secret.yaml"
|
|
kubectl apply -f "$DIR/chal1-second-track.yaml"
|
|
kubectl apply -f "$DIR/chal2-second-track-aftermath.yaml"
|
|
kubectl apply -f "$DIR/chal3-second-track-reborn.yaml"
|
|
kubectl apply -f "$DIR/chal4-big-software-foundation.yaml"
|
|
kubectl apply -f "$DIR/chal5-elfs-blog.yaml"
|
|
|
|
echo "==> Applied. Watching rollout..."
|
|
kubectl -n ctf rollout status deploy/chal1-second-track
|
|
kubectl -n ctf rollout status deploy/chal2-aftermath
|
|
kubectl -n ctf rollout status deploy/chal3-reborn
|
|
kubectl -n ctf rollout status deploy/chal4-big-software
|
|
kubectl -n ctf rollout status deploy/chal5-elfs-blog
|
|
kubectl -n ctf get pods,ingress
|