about summary refs log tree commit diff
path: root/nginx/replace-config
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/replace-config')
-rwxr-xr-xnginx/replace-config18
1 files changed, 0 insertions, 18 deletions
diff --git a/nginx/replace-config b/nginx/replace-config
deleted file mode 100755
index 2542a2c683e3..000000000000
--- a/nginx/replace-config
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-set -ueo pipefail
-
-readonly main_conf=$(cat conf/main.conf | base64 -w0)
-readonly http_conf=$(cat conf/http.conf | base64 -w0)
-readonly stream_conf=$(cat conf/stream.conf | base64 -w0)
-
-echo "Replacing nginx configuration ..."
-kubectl replace --force -f - <<EOF
-apiVersion: v1
-kind: Secret
-metadata:
-  name: nginx-config
-data:
-  main.conf: ${main_conf}
-  http.conf: ${http_conf}
-  stream.conf: ${stream_conf}
-EOF