#!/bin/sh # Generates authoritative zone ConfigMap for svc.n0ball.tw from svc-records.yaml # Usage: ./generate-zone.sh svc-records.yaml > coredns-auth-zone.yaml set -e RECORDS_FILE="${1:-svc-records.yaml}" SERIAL=$(date +%Y%m%d%H) cat <