Files

21 lines
504 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -eu
namespace=default
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
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 "$script_dir/phppgadmin.yaml"
kubectl apply --filename "$script_dir/phppgadmin.yaml"
kubectl rollout status deployment/phppgadmin \
--namespace "$namespace" \
--timeout=10m
echo
echo "phpPgAdmin is available at https://phppgadmin.brunner.ninja."