k8s-lab/k3s/rpi/kube-system/sealed-secrets/create_sealed_secret.sh

8 lines
202 B
Bash
Raw Normal View History

2025-06-21 20:36:29 +00:00
#/bin/bash
unencrypted_file="$1"
encrypted_file="$2"
cert_file="$3"
cat "$1" | kubeseal --cert "$3" --controller-name=sealed-secrets-controller --controller-namespace=kube-system --format yaml > "$2"