Skip to content

Commit a3f84e3

Browse files
committed
Change default transport
1 parent 97ce07c commit a3f84e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

masterkube/bin/create-masterkube.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,8 @@ done
139139

140140
# GRPC network endpoint
141141
if [ "$TRANSPORT" == "unix" ]; then
142-
sudo mkdir -p /var/run/cluster-autoscaler
143-
sudo chown 777 /var/run/cluster-autoscaler
144-
LISTEN="/var/run/cluster-autoscaler/grpc.sock"
145-
CONNECTTO="${TRANSPORT}:${LISTEN}"
142+
LISTEN="${PWD}/config/grpc.sock"
143+
CONNECTTO="${TRANSPORT}:/etc/cluster-autoscaler/grpc.sock"
146144
elif [ "$TRANSPORT" == "tcp" ]; then
147145
if [ "$OSDISTRO" == "Linux" ]; then
148146
NET_IF=$(ip route get 1 | awk '{print $5;exit}')

0 commit comments

Comments
 (0)