Skip to content

Commit

Permalink
Update keepalived config location
Browse files Browse the repository at this point in the history
It's not deliverd by the alpine pkg anymore.
  • Loading branch information
schemen committed Aug 20, 2022
1 parent 314ef86 commit 8f1a9c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ PEER_IPS=$(curl -sS --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.cr

KEEPALIVED_CONFIG=/etc/keepalived/keepalived.conf

mkdir -p /etc/keepalived/

if [ -z "$PRIORITY" ]; then
HOST_ID=$(echo $HOST_IP | grep -o "[0-9]*$")
PRIORITY=$((100 + $HOST_ID))
fi

if test -f "$KEEPALIVED_CONFIG"; then
echo "$KEEPALIVED_CONFIG exists. Deleting..."
rm -f $KEEPALIVED_CONFIG
fi

cat <<EOF > $KEEPALIVED_CONFIG
global_defs {
Expand Down

0 comments on commit 8f1a9c8

Please sign in to comment.