tvl-depot/nginx/replace-config

15 lines
260 B
Text
Raw Normal View History

2016-03-01 01:11:36 +01:00
#!/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