Files
home-assistant-kubernetes/install.sh
T
feedc0de cd34e7413d
Validate and deploy Home Assistant / Validate manifests (push) Successful in 22s
Validate and deploy Home Assistant / Deploy to Kubernetes (push) Successful in 2m37s
Initial commit of my existing home-assistant config files and CI
2026-08-08 22:26:36 +02:00

19 lines
566 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
namespace=default
if ! command -v kubectl >/dev/null 2>&1; then
echo "Required command not found: kubectl" >&2
exit 1
fi
kubectl apply --dry-run=server --filename "${project_dir}/home-assistant.yaml"
kubectl apply --filename "${project_dir}/home-assistant.yaml"
kubectl --namespace "${namespace}" rollout status deployment/home-assistant --timeout=10m
echo
echo "Home Assistant is available at https://homeass.brunner.ninja and http://192.168.0.15:8123."