summaryrefslogtreecommitdiff
path: root/contrib/k8s-emc/_graveyard_/import-acme-certs.sh
blob: b85fa42653d894cca1affa3ffe0d93fa9c87c68c (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

declare -A domains
domains[emc-stats]="emc-stats.elev8.at"
domains[stream-elev8]="stream.elev8.at"
domains[stream-elevate]="stream.elevate.at"
for name in "${!domains[@]}"; do
  ssh emc-00 kubectl -n emc create secret tls "$name\-tls" "--cert=/var/lib/acme/live/${domains[$name]}/fullchain" "--key=/var/lib/acme/live/${domains[$name]}/privkey" --dry-run=client -o json | kubectl apply -f -
done