This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n' clusters=($(kubectl config get-contexts --no-headers | awk '{print $2}')) | |
active_cluster=$(kubectl config current-context) | |
for i in ${!clusters[@]}; | |
do | |
: | |
if [ "${clusters[$i]}" == $active_cluster ]; then | |
echo -e "\e[33m[*] \e[36m"${clusters[$i]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load_module modules/ngx_rtmp_module.so; | |
... | |
rtmp { | |
server { | |
listen 0.0.0.0:1935; | |
# if you want to run all on one server, change port here, eg: | |
# listen 127.0.0.1:1936; | |
chunk_size 4000; | |
notify_method get; | |
interleave on; |