tvl-depot/nginx/replace-config
2016-03-01 01:11:36 +01:00

14 lines
260 B
Bash
Executable file

#!/bin/bash
set -ueo pipefail
readonly server_conf=$(cat server.conf | base64 -w0)
echo "Replacing nginx configuration ..."
kubectl replace --force -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: nginx-config
data:
server.conf: ${server_conf}
EOF